diff --git a/backends/twitter/libtwitcurl/oauthlib.h b/backends/twitter/libtwitcurl/oauthlib.h index 3b158e7abe7453e8eb1f049e275ac09bdc07aaf8..880a7b889c7b93250126f2a8dc3b8564f298bae6 100644 --- a/backends/twitter/libtwitcurl/oauthlib.h +++ b/backends/twitter/libtwitcurl/oauthlib.h @@ -90,6 +90,20 @@ public: bool extractOAuthTokenKeySecret( const std::string& requestTokenResponse /* in */ ); + oAuth clone() + { + oAuth cloneObj; + cloneObj.m_consumerKey = m_consumerKey; + cloneObj.m_consumerSecret = m_consumerSecret; + cloneObj.m_oAuthTokenKey = m_oAuthTokenKey; + cloneObj.m_oAuthTokenSecret = m_oAuthTokenSecret; + cloneObj.m_oAuthPin = m_oAuthPin; + cloneObj.m_nonce = m_nonce; + cloneObj.m_timeStamp = m_timeStamp; + cloneObj.m_oAuthScreenName = m_oAuthScreenName; + return cloneObj; + } + private: /* OAuth data */ @@ -121,4 +135,4 @@ private: void generateNonceTimeStamp(); }; -#endif // __OAUTHLIB_H__ \ No newline at end of file +#endif // __OAUTHLIB_H__