Changeset View
Changeset View
Standalone View
Standalone View
src/core/ui/authwidget_p.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 41 | class Q_DECL_HIDDEN AuthWidgetPrivate: public QObject { | |||
---|---|---|---|---|---|
74 | private: | 74 | private: | ||
75 | void setupUi(); | 75 | void setupUi(); | ||
76 | void setProgress(AuthWidget::Progress progress); | 76 | void setProgress(AuthWidget::Progress progress); | ||
77 | 77 | | |||
78 | bool isGoogleHost(const QUrl &url) const { return url.host() == QLatin1String("accounts.google.com"); } | 78 | bool isGoogleHost(const QUrl &url) const { return url.host() == QLatin1String("accounts.google.com"); } | ||
79 | bool isSigninPage(const QUrl &url) const { return url.path() == QLatin1String("/signin/oauth"); } | 79 | bool isSigninPage(const QUrl &url) const { return url.path() == QLatin1String("/signin/oauth"); } | ||
80 | bool isUsernameFrame(const QUrl &url) { return url.path() == QLatin1String("/signin/oauth/identifier"); } | 80 | bool isUsernameFrame(const QUrl &url) { return url.path() == QLatin1String("/signin/oauth/identifier"); } | ||
81 | bool isPasswordFrame(const QUrl &url) { return url.path() == QLatin1String("/signin/v2/challenge/pwd"); } | 81 | bool isPasswordFrame(const QUrl &url) { return url.path() == QLatin1String("/signin/v2/challenge/pwd"); } | ||
82 | bool isTokenPage(const QUrl &url) { return url.path() == QLatin1String("/o/oauth2/approval/v2"); } | 82 | bool isTokenPage(const QUrl &url) { return url.path() == QLatin1String("/o/oauth2/approval/v2/approvalnativeapp"); } | ||
83 | 83 | | |||
84 | void setSslIcon(const QString &icon); | 84 | void setSslIcon(const QString &icon); | ||
85 | 85 | | |||
86 | AuthWidget *q; | 86 | AuthWidget *q; | ||
87 | 87 | | |||
88 | friend class AuthWidget; | 88 | friend class AuthWidget; | ||
89 | }; | 89 | }; | ||
90 | 90 | | |||
91 | } // namespace KGAPI2 | 91 | } // namespace KGAPI2 | ||
92 | 92 | | |||
93 | 93 | | |||
94 | #endif // LIBKGAPI_AUTHWIDGET_P_H | 94 | #endif // LIBKGAPI_AUTHWIDGET_P_H |