diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-08-15 14:10:22 +0200 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-08-16 11:41:51 +0200 |
commit | 766a0247fc3ac49b25aab69948e4d0a5df334ff9 (patch) | |
tree | d94ac9ded910f4437201a6fb9b9cffb09f6a20ab /tubes/inc | |
parent | bd465b57caf1bf5eba04c37a2095e902c8b4e4f9 (diff) |
tubes: also prepare the Account Manager when creating; and simplify
Change-Id: I7705d627d17f20c3c81de7aa4debbefc127354b0
Diffstat (limited to 'tubes/inc')
-rw-r--r-- | tubes/inc/tubes/manager.hxx | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/tubes/inc/tubes/manager.hxx b/tubes/inc/tubes/manager.hxx index 38e5d8cdca14..06f682d0e51b 100644 --- a/tubes/inc/tubes/manager.hxx +++ b/tubes/inc/tubes/manager.hxx @@ -57,16 +57,8 @@ class TeleManager { TeleManager(); ~TeleManager(); -public: - - enum AccountManagerStatus - { - AMS_UNINITIALIZED = 0, - AMS_INPREPARATION, - AMS_UNPREPARABLE, - AMS_PREPARED - }; +public: /** Prepare tube manager with account and service to be offered/listened to. */ @@ -80,23 +72,12 @@ public: /** Get a conference with current UUID to set a session. */ TUBES_DLLPUBLIC static TeleConference* getConference(); - /** Connect to DBus and create AccountManager. */ + /** Connect to DBus, create and prepare the Telepathy Account Manager. */ static bool createAccountManager(); /** Setup client handlers. */ static bool registerClients(); - /** Prepare the Telepathy Account Manager. - Requires createAccountManager() to have succeeded. - - Invokes an async call that is not ready until meAccountManagerStatus is - set! Until that is AMS_PREPARED nothing else will work. - - TODO: this needs some signalling mechanism - */ - static void prepareAccountManager(); - static AccountManagerStatus getAccountManagerStatus(); - /** Fetches the contact list. Returns 0 before connect() is called successfully. Is non-functional until prepareAccountManager(). */ @@ -151,12 +132,10 @@ public: static void addConference( TeleConference* pConference ); static void setChannelReadyHandlerInvoked( bool b ); static bool isChannelReadyHandlerInvoked(); + static void setAccountManagerReady( bool bPrepared); static void setAccountManagerReadyHandlerInvoked( bool b ); static bool isAccountManagerReadyHandlerInvoked(); - /** Only the callback of prepareAccountManager() is to set this. */ - static void setAccountManagerReady( bool bPrepared); - /// "LibreOfficeWhatEver" static rtl::OString getFullClientName(); |