summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-09-15 07:36:24 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-09-15 07:38:51 (GMT)
commitc557a9771c99012624e104e5bc71aeb93f38a8bf (patch)
tree72ade858fa4d2e8b16f1af714c310246d38c9c79 /Swift/Controllers/MainController.h
parent71accda257c880d576b8b55f1e62d6d7178bab25 (diff)
downloadswift-c557a9771c99012624e104e5bc71aeb93f38a8bf.zip
swift-c557a9771c99012624e104e5bc71aeb93f38a8bf.tar.bz2
Logout without signout, but without UI notification that you're logged out.
Diffstat (limited to 'Swift/Controllers/MainController.h')
-rw-r--r--Swift/Controllers/MainController.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/Swift/Controllers/MainController.h b/Swift/Controllers/MainController.h
index a36351e..3fbe9b4 100644
--- a/Swift/Controllers/MainController.h
+++ b/Swift/Controllers/MainController.h
@@ -16,6 +16,7 @@
#include "Swiften/Settings/SettingsProvider.h"
#include "Swiften/Elements/CapsInfo.h"
#include "Swiften/MUC/MUCRegistry.h"
+#include "Swiften/Roster/XMPPRoster.h"
namespace Swift {
class AvatarStorage;
@@ -67,10 +68,14 @@ namespace Swift {
ChatController* getChatController(const JID &contact);
void sendPresence(boost::shared_ptr<Presence> presence);
void logout();
+ void signout();
virtual bool isMUC(const JID& muc) const;
private:
+ void performLoginFromCachedCredentials();
+ void enableManagers();
+ void disableManagers();
Client* client_;
ChatWindowFactory* chatWindowFactory_;
MainWindowFactory* mainWindowFactory_;
@@ -91,6 +96,7 @@ namespace Swift {
std::map<JID, MUCController*> mucControllers_;
std::map<JID, ChatController*> chatControllers_;
boost::shared_ptr<DiscoInfo> serverDiscoInfo_;
+ boost::shared_ptr<XMPPRoster> xmppRoster_;;
JID jid_;
PresenceOracle* presenceOracle_;
SystemTrayController* systemTrayController_;
@@ -98,6 +104,9 @@ namespace Swift {
AvatarManager* avatarManager_;
boost::shared_ptr<Presence> lastSentPresence_;
String vCardPhotoHash_;
+ boost::shared_ptr<Presence> queuedPresence_;
+ String password_;
+ String certificateFile_;
};
}
#endif