2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Ville Tiensuu - ville.tiensuu@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 #ifndef FACEBOOKCREDENTIALS_H
23 #define FACEBOOKCREDENTIALS_H
28 * @brief Class is used to integrate facebook credentials together.
30 * @author Ville Tiensuu
31 * @class FacebookCredentials facebookcredentials.h situare/src/facebookservice/facebookcredentials.h"
33 class FacebookCredentials
37 * @brief Default constructor
40 FacebookCredentials();
43 * @brief Set function for m_sessionKey member
45 * @param sessionKeyParameter, value of parameter is set to m_sessionKey member
47 void setSessionKey(const QString & sessionKeyParameter);
50 * @brief Set function for m_sessionSecret member
52 * @param sessionSecretParameter, value of parameter is set to m_sessionSecret member
54 void setSessionSecret(const QString & sessionSecretParameter);
57 * @brief Set funtion for m_expires member
59 * @param expiresParameter, value of parameter is set to m_expires member
61 void setExpires (const QString & expiresParameter);
64 * @brief Set function for m_userID member
66 * @param userIDParameter, value of parameter is set to m_userID member
68 void setUserID(const QString & userIDParameter);
71 * @brief Set funtion for m_sig member
73 * @param sigParameter, value of parameter is set to m_sig member
75 void setSig(const QString & sigParameter);
78 * @brief Get function for m_sessionKey member
80 * @return QString m_sessionKey
82 QString sessionKey() const;
85 * @brief Get funtion for m_sessionSecret member
87 * @return QString m_sessionSecret
89 QString sessionSecret() const;
92 * @brief Get function for m_expires member
94 * @return QString m_expires
96 QString expires() const;
99 * @brief Get function for m_userID member
101 * @return QString m_userID
103 QString userID() const;
106 * @brief Get function for m_sig member
108 * @return QString m_sig
113 * @brief Overloaded operator == is used to compare two FacebookCredentials.
115 * @param credentials to be checked
116 * @return bool, returns true if all members are same, else returns false
118 bool operator==(const FacebookCredentials& credentials);
122 * @brief String for storing sessionKey
126 QString m_sessionKey;
129 * @brief String for storing sessionSecret
131 * @var m_sessionSecret
133 QString m_sessionSecret;
136 * @brief String for storing expires
143 * @brief String for storing userID
150 * @brief String for storing sig
157 #endif // FACEBOOKCREDENTIALS_H