f | In this document i am trying to explain how to add | f | In this document i am trying to explain how to add |
| support for a new protocol to GOIM 2. | | support for a new protocol to GOIM 2. |
| | | |
| I'm doing this by giving the example of adding xfi | | I'm doing this by giving the example of adding xfi |
| re support. | | re support. |
| | | |
| | | |
n | # Creating a new project | n | # Creating a new protocol project |
| | | |
| This will be the base protocol support. | | This will be the base protocol support. |
| | | |
| - New -> Project ... Plug-in project | | - New -> Project ... Plug-in project |
| - Project name: net.sphene.goim.protocol.xfire | | - Project name: net.sphene.goim.protocol.xfire |
| (this can be of course be different) | | (this can be of course be different) |
| | | |
| the job of this method is to create a new IM conne | | the job of this method is to create a new IM conne |
| ction for the given account. | | ction for the given account. |
| | | |
| So you need to create a new class which implements | | So you need to create a new class which implements |
| 'IIMAccountConnection' and - to make your life ea | | 'IIMAccountConnection' and - to make your life ea |
| sier - extends AbstractIMAccountConnection. | | sier - extends AbstractIMAccountConnection. |
| | | |
t | | t | # Creating a new protocol UI project
|
| | |
|
| | | The UI project is responsible for providing the lo |
| | | gin/register (if appropriate) dialogs for the wiza |
| | | rd. It might also contain other protocol specific |
| | | UI.
|
| | |
|
| | | - New -> Project .. Plug-in Project
|
| | | - net.sphene.goim.protocol.xfire.ui - by conve |
| | | ntion the UI project simply has an 'ui' addition.
|
| | | - This time check 'This plug-in will make cont |
| | | ributions to the UI'
|
| | | - Do not use any plug-in templates
|
| | | - open the MANIFEST-MF and add a new extension to |
| | | the extension point 'net.sphene.goim.core.ui.proto |
| | | colui'
|
| | | - protocolextension: this should be the ID of your |
| | | protocol - in our example net.sphene.goim.protoco |
| | | l.xfire.protocol
|