14class Q_DECL_HIDDEN
Account::Private
18 Private(
const Private &other);
27Account::Private::Private()
32Account::Private::Private(
const Private &other)
33 : accName(other.accName)
34 , accessToken(other.accessToken)
35 , refreshToken(other.refreshToken)
36 , expireDateTime(other.expireDateTime)
37 , scopes(other.scopes)
43 , m_scopesChanged(false)
49 , m_scopesChanged(false)
58 : d(new Private(*(other.d)))
59 , m_scopesChanged(other.m_scopesChanged)
68bool Account::operator==(
const Account &other)
const
95 return d->accessToken;
105 return d->refreshToken;
121 m_scopesChanged =
true;
128 m_scopesChanged =
true;
136 m_scopesChanged =
true;
142 return d->expireDateTime;
147 d->expireDateTime = expire;
152 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/userinfo.profile"));
157 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/userinfo.email"));
162 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/calendar"));
167 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/calendar.events"));
172 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/contacts"));
177 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/latitude.all.best"));
182 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/tasks"));
187 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/blogger"));
192 return QUrl(QStringLiteral(
"https://mail.google.com/"));
197 return QUrl(QStringLiteral(
"https://www.googleapis.com/auth/drive"));
QString refreshToken() const
static QUrl accountInfoEmailScopeUrl()
Returns scope URL to retrieve AccountInfo with email.
static QUrl calendarScopeUrl()
Returns scope URL for accessing calendars in Google Calendar.
static QUrl peopleScopeUrl()
Returns scope URL for Google People service.
QString accountName() const
static QUrl latitudeScopeUrl()
Returns scope URL for Google Latitude service.
QString accessToken() const
static QUrl mailScopeUrl()
Returns scope URL for Gmail service.
static QUrl calendarEventsScopeUrl()
Returns scope URL for accessing Google Calendar events.
void setExpireDateTime(const QDateTime &expire)
Account()
Constructs an invalid account.
void addScope(const QUrl &scope)
Adds a single scope to account scopes.
void setRefreshToken(const QString &refreshToken)
Sets a new refresh token for the access token.
void removeScope(const QUrl &scope)
Removes scope from the list.
virtual ~Account()
Destructor.
static QUrl driveScopeUrl()
Returns scope URL for Drive service.
static QUrl bloggerScopeUrl()
Returns scope URL for Google Blogger service.
void setScopes(const QList< QUrl > &scopes)
Sets new scopes.
void setAccountName(const QString &accountName)
Sets account name.
static QUrl accountInfoScopeUrl()
Returns scope URL for AccountInfo service.
static QUrl tasksScopeUrl()
Returns scope URL for Google Tasks service.
void setAccessToken(const QString &accessToken)
Sets a new access token.
QDateTime expireDateTime() const
QList< QUrl > scopes() const
A job to fetch a single map tile described by a StaticMapUrl.
void append(QList< T > &&value)
bool contains(const AT &value) const const
bool removeOne(const AT &t)