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 funtion for m_expires member
45 * @param expiresParameter value of parameter is set to m_expires member
47 void setExpires (const QString & expiresParameter);
50 * @brief Set function for m_sessionKey member
52 * @param sessionKeyParameter value of parameter is set to m_sessionKey member
54 void setSessionKey(const QString & sessionKeyParameter);
57 * @brief Set function for m_sessionSecret member
59 * @param sessionSecretParameter value of parameter is set to m_sessionSecret member
61 void setSessionSecret(const QString & sessionSecretParameter);
64 * @brief Set funtion for m_sig member
66 * @param sigParameter value of parameter is set to m_sig member
68 void setSig(const QString & sigParameter);
71 * @brief Set function for m_userID member
73 * @param userIDParameter value of parameter is set to m_userID member
75 void setUserID(const QString & userIDParameter);
78 * @brief Get function for m_expires member
80 * @return QString m_expires
82 QString expires() const;
85 * @brief Get function for m_sessionKey member
87 * @return QString m_sessionKey
89 QString sessionKey() const;
92 * @brief Get funtion for m_sessionSecret member
94 * @return QString m_sessionSecret
96 QString sessionSecret() const;
99 * @brief Get function for m_sig member
101 * @return QString m_sig
106 * @brief Get function for m_userID member
108 * @return QString m_userID
110 QString userID() const;
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);
123 * @brief String for storing expires
130 * @brief String for storing sessionKey
134 QString m_sessionKey;
137 * @brief String for storing sessionSecret
139 * @var m_sessionSecret
141 QString m_sessionSecret;
144 * @brief String for storing sig
151 * @brief String for storing userID
158 #endif // FACEBOOKCREDENTIALS_H