summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2009-06-10 17:23:57 (GMT)
committerRemko Tronçon <git@el-tramo.be>2009-06-10 17:38:05 (GMT)
commite2f5588d089e4d2148762ea092e032976254a467 (patch)
tree851946c7a36ffa96e0f3ab54bc72f233f8b2c746 /Swiften/Controllers/MainController.h
parent7214d768dca85a6d43892169d5008898249dce73 (diff)
downloadswift-contrib-e2f5588d089e4d2148762ea092e032976254a467.zip
swift-contrib-e2f5588d089e4d2148762ea092e032976254a467.tar.bz2
Moved Swiften/Controllers to Swift/Controllers.
Diffstat (limited to 'Swiften/Controllers/MainController.h')
-rw-r--r--Swiften/Controllers/MainController.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/Swiften/Controllers/MainController.h b/Swiften/Controllers/MainController.h
deleted file mode 100644
index e09d4fa..0000000
--- a/Swiften/Controllers/MainController.h
+++ /dev/null
@@ -1,85 +0,0 @@
-#ifndef SWIFTEN_MainController_H
-#define SWIFTEN_MainController_H
-
-
-#include "Swiften/Base/String.h"
-#include "Swiften/Client/ClientError.h"
-#include "Swiften/JID/JID.h"
-#include "Swiften/Elements/DiscoInfo.h"
-#include "Swiften/Elements/Error.h"
-#include "Swiften/Elements/Presence.h"
-#include "Swiften/Elements/Message.h"
-#include "Swiften/Settings/SettingsProvider.h"
-#include "Swiften/Elements/CapsInfo.h"
-
-
-#include <boost/signals.hpp>
-#include <boost/shared_ptr.hpp>
-
-#include <vector>
-
-namespace Swift {
- class Application;
- class Client;
- class ChatWindowFactory;
- class ChatController;
- class EventController;
- class MainWindowFactory;
- class MainWindow;
- class NickResolver;
- class RosterController;
- class XMPPRosterController;
- class DiscoInfoResponder;
- class LoginWindow;
- class EventLoop;
- class SoftwareVersionResponder;
- class LoginWindowFactory;
- class TreeWidgetFactory;
- class MUCController;
- class PresenceOracle;
-
- class MainController {
- public:
- MainController(ChatWindowFactory* chatWindowFactory, MainWindowFactory *mainWindowFactory, LoginWindowFactory *loginWindowFactory, TreeWidgetFactory* treeWidgetFactory, SettingsProvider *settings, Application* application);
- ~MainController();
-
-
- private:
- void handleConnected();
- void handleLoginRequest(const String& username, const String& password, const String& certificateFile, bool remember);
- void handleChatRequest(const String& contact);
- void handleJoinMUCRequest(const JID& muc, const String& nick);
- void handleIncomingPresence(boost::shared_ptr<Presence> presence);
- void handleChatControllerJIDChanged(const JID& from, const JID& to);
- void handleIncomingMessage(boost::shared_ptr<Message> message);
- void handleChangeStatusRequest(StatusShow::Type show, const String &statusText);
- void handleError(const ClientError& error);
- void handleServerDiscoInfoResponse(boost::shared_ptr<DiscoInfo>, const boost::optional<Error>&);
- void handleEventQueueLengthChange(int count);
- ChatController* getChatController(const JID &contact);
- void logout();
-
- Client* client_;
- ChatWindowFactory* chatWindowFactory_;
- MainWindowFactory* mainWindowFactory_;
- LoginWindowFactory* loginWindowFactory_;
- TreeWidgetFactory* treeWidgetFactory_;
- SettingsProvider *settings_;
- Application* application_;
- ChatController* chatController_;
- XMPPRosterController* xmppRosterController_;
- RosterController* rosterController_;
- EventController* eventController_;
- LoginWindow* loginWindow_;
- SoftwareVersionResponder* clientVersionResponder_;
- NickResolver* nickResolver_;
- DiscoInfoResponder* discoResponder_;
- boost::shared_ptr<CapsInfo> capsInfo_;
- std::map<JID, MUCController*> mucControllers_;
- std::map<JID, ChatController*> chatControllers_;
- boost::shared_ptr<DiscoInfo> serverDiscoInfo_;
- PresenceOracle* presenceOracle_;
- };
-}
-#endif
-