summaryrefslogtreecommitdiff
path: root/tubes/inc
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-07-13 19:06:34 +0200
committerMatúš Kukan <matus.kukan@gmail.com>2012-07-17 16:40:23 +0200
commitfd9d7f35d9cec7584061d9930c05189ec5838036 (patch)
treed5e8d93bad595c4ad5eca2a94e8d2ef5de066685 /tubes/inc
parent17c549221427bde2390368be39f48134409a933f (diff)
tubes: split TeleManager::connect method.
Use createAccountManager instead. Optionally also register clients for accepting tubes. Will be used more later. Change-Id: I353d45e95fa130c0c578b74d016b650039358ea7
Diffstat (limited to 'tubes/inc')
-rw-r--r--tubes/inc/tubes/manager.hxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/tubes/inc/tubes/manager.hxx b/tubes/inc/tubes/manager.hxx
index ee743432f46c..f926ec122ef1 100644
--- a/tubes/inc/tubes/manager.hxx
+++ b/tubes/inc/tubes/manager.hxx
@@ -86,7 +86,14 @@ public:
static TeleManager *get( bool bAcceptIncoming );
void unref();
- /** Prepare the Telepathy Account Manager. Requires connect() to have succeeded.
+ /** Connect to DBus and create AccountManager. */
+ bool createAccountManager();
+
+ /** Setup client handlers. */
+ 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.
@@ -131,9 +138,6 @@ public:
void unregisterConference( TeleConferencePtr pConference );
- /** Connect to DBus and setup client handler. */
- bool connect();
-
void disconnect();
/** Send data to all registered conferences.