diff --git a/backends/twitter/TwitterPlugin.h b/backends/twitter/TwitterPlugin.h index 979985f3e77028a23558302334648b0a629cadc7..77351c3e1bdc4a955598ecc3e7edbdaf1bde787c 100644 --- a/backends/twitter/TwitterPlugin.h +++ b/backends/twitter/TwitterPlugin.h @@ -48,6 +48,7 @@ class TwitterPlugin : public NetworkPlugin { Swift::BoostNetworkFactories *m_factories; Swift::BoostIOServiceThread m_boostIOServiceThread; boost::shared_ptr m_conn; + Swift::Timer::ref m_timer; StorageBackend *storagebackend; TwitterPlugin(Config *config, Swift::SimpleEventLoop *loop, StorageBackend *storagebackend, const std::string &host, int port); @@ -71,6 +72,8 @@ class TwitterPlugin : public NetworkPlugin { void handleBuddyRemovedRequest(const std::string &user, const std::string &buddyName, const std::vector &groups); + void pollForTweets(); + bool getUserOAuthKeyAndSecret(const std::string user, std::string &key, std::string &secret); bool storeUserOAuthKeyAndSecret(const std::string user, const std::string OAuthKey, const std::string OAuthSecret); @@ -96,6 +99,7 @@ class TwitterPlugin : public NetworkPlugin { ThreadPool *tp; std::map sessions; std::map connectionState; + std::set onlineUsers; }; #endif