/usr/include/libkfbapi/userinfo.h is in libkfbapi-dev 1.0-0ubuntu7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 | /* Copyright 2010, 2011 Thomas McGuire <mcguire@kde.org>
This library is free software; you can redistribute it and/or modify
it under the terms of the GNU Library General Public License as published
by the Free Software Foundation; either version 2 of the License or
( at your option ) version 3 or, at the discretion of KDE e.V.
( which shall act as a proxy as in section 14 of the GPLv3 ), any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KFBAPI_USERINFO_H
#define KFBAPI_USERINFO_H
#include "libkfbapi_export.h"
#include <KABC/Addressee>
#include <KDateTime>
#include <QSharedPointer>
#include <QDate>
namespace KFbAPI {
/**
* Class that describes a person on facebook
*/
class LIBKFBAPI_EXPORT UserInfo
{
public:
UserInfo();
UserInfo(const UserInfo &other);
~UserInfo();
UserInfo &operator=(const UserInfo &other);
/**
* @brief Sets the facebook id of a person
* @param id The Facebook id
*/
void setId(const QString &id);
/**
* @return The facebook id of this person
*/
QString id() const;
/**
* @brief Set the name of this person.
* @param name The name of this person.
*/
void setName(const QString &name);
/**
* @return The name this person.
*/
QString name() const;
/**
* @brief Set the first name of this person.
* @param firstName The first name of this person.
*/
void setFirstName(const QString &firstName);
/**
* @return The first name of this person.
*/
QString firstName() const;
/**
* @brief Set the last name of this person.
* @param lastName The last name of this person.
*/
void setLastName(const QString &lastName);
/**
* @return The last name of this person.
*/
QString lastName() const;
/**
* @brief Set the birthday of this person.
* @param birthday The birthday in "facebook format"
*/
void setBirthday(const QString &birthday);
/**
* @return The birthday as a QString in "facebook format"
*/
QString birthdayString() const;
/**
* @return The birthday of this person as a QDate.
*/
QDate birthday() const;
/**
* @brief Set the website of this person.
* @param website The url to the website of this user.
*/
void setWebsite(const QUrl &website);
/**
* @return The url to the website of this user as a QString.
*/
QUrl website() const;
/**
* @brief Set the username of this person.
* @param username The username of this user.
*/
void setUsername(const QString &username);
/**
* @return The username of this user as a QString.
*/
QString username() const;
/**
* @brief Set the current city of this person.
* @param city The current city of this person.
*/
void setCity(const QString &city);
/**
* @return Current city of this person
*/
QString city() const;
/**
* @brief Set the current country of this person.
* @param country The current country of this person.
*/
void setCountry(const QString &country);
/**
* @return Current city of this person
*/
QString country() const;
/**
* @brief Set the current company this person is working at.
* @param company The company this person is working at.
*/
void setCompany(const QString &company);
/**
* @return The company this person is working at.
*/
QString company() const;
/**
* @brief Set the profession of this person.
* @param profession The profession of this person.
*/
void setProfession(const QString &profession);
/**
* @return The profession of this person.
*/
QString profession() const;
/**
* @brief Set the partner of this person.
* @param partner The partner of this person.
*/
void setPartner(const QString &partner);
/**
* @return The partner of this person.
*/
QString partner() const;
/**
* @brief Set the timezone of this person.
* @param timezone The timezone of this person.
*/
void setTimezone(int timezone);
/**
* @return The timezone fo this person.
*/
int timezone() const;
/**
* @brief Set the time this person last updated his/her profile.
* @param updatedTime The time of the last update in "facebook format"
*/
void setUpdatedTimeString(const QString &updatedTime);
/**
* @return The time of the last update of the profile as a QString
* in "facebook format"
*/
QString updatedTimeString() const;
/**
* @return The time of the last update of the profile as a KDateTime
*/
KDateTime updatedTime() const;
/**
* @brief Created a KABC::Addressee for all the information we have about
* this person.
*
* @return A KABC::Addressee of this person.
*/
KABC::Addressee toAddressee() const;
/**
* @brief Set the profile picture url
* @param pictureUrl Url of the profile picture
*/
void setPicture(const QUrl &pictureUrl);
/**
* @return The profile picture url
*/
QUrl picture() const;
private:
class UserInfoPrivate;
QSharedDataPointer<UserInfoPrivate> d;
};
}
Q_DECLARE_METATYPE(KFbAPI::UserInfo)
#endif
|