00001 /* 00002 Situare - A location system for Facebook 00003 Copyright (C) 2010 Ixonos Plc. Authors: 00004 00005 Ville Tiensuu - ville.tiensuu@ixonos.com 00006 00007 Situare is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU General Public License 00009 version 2 as published by the Free Software Foundation. 00010 00011 Situare is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with Situare; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 00019 USA. 00020 */ 00021 00022 #ifndef FACEBOOKCREDENTIALS_H 00023 #define FACEBOOKCREDENTIALS_H 00024 00025 #include <QString> 00026 00033 class FacebookCredentials 00034 { 00035 public: 00040 FacebookCredentials(); 00041 00046 void clearCredentials(); 00047 00053 void setExpires (const QString & expiresParameter); 00054 00060 void setSessionKey(const QString & sessionKeyParameter); 00061 00067 void setSessionSecret(const QString & sessionSecretParameter); 00068 00074 void setSig(const QString & sigParameter); 00075 00081 void setUserID(const QString & userIDParameter); 00082 00088 QString expires() const; 00089 00095 QString sessionKey() const; 00096 00102 QString sessionSecret() const; 00103 00109 QString sig() const; 00110 00116 QString userID() const; 00117 00124 bool operator==(const FacebookCredentials& credentials); 00125 00126 private: 00127 00133 QString m_expires; 00134 00140 QString m_sessionKey; 00141 00147 QString m_sessionSecret; 00148 00154 QString m_sig; 00155 00161 QString m_userID; 00162 }; 00163 00164 #endif // FACEBOOKCREDENTIALS_H