feat: create base class for xmpp connections
This commit is contained in:
parent
59ac3aeb0a
commit
417bfa9c32
1 changed files with 7 additions and 1 deletions
8
App.h
8
App.h
|
@ -3,6 +3,8 @@
|
|||
|
||||
#include <Message.h>
|
||||
#include <Window.h>
|
||||
#include <gloox/connectionlistener.h>
|
||||
#include <gloox/presencehandler.h>
|
||||
|
||||
#define APP_NAME "Renga"
|
||||
#define APP_AUTHOR "hex_andre"
|
||||
|
@ -11,6 +13,10 @@ const uint32 msgConnectButtonClicked = 'mCBC';
|
|||
|
||||
#include <Application.h>
|
||||
|
||||
class Client : public gloox::ConnectionListener, gloox::PresenceHandler {
|
||||
|
||||
};
|
||||
|
||||
class App : public BApplication
|
||||
{
|
||||
public:
|
||||
|
@ -18,7 +24,7 @@ class App : public BApplication
|
|||
virtual void MessageReceived(BMessage *msg);
|
||||
BWindow *ConnectWindow;
|
||||
BWindow *ContactsWindow;
|
||||
Client *client;
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue