Changeset View
Changeset View
Standalone View
Standalone View
src/provider.cpp
Show First 20 Lines • Show All 85 Lines • ▼ Show 20 Line(s) | |||||
86 | #include <QDebug> | 86 | #include <QDebug> | ||
87 | #include <QUrl> | 87 | #include <QUrl> | ||
88 | #include <QUrlQuery> | 88 | #include <QUrlQuery> | ||
89 | #include <QNetworkReply> | 89 | #include <QNetworkReply> | ||
90 | #include <QtCore/QFile> | 90 | #include <QtCore/QFile> | ||
91 | 91 | | |||
92 | using namespace Attica; | 92 | using namespace Attica; | ||
93 | 93 | | |||
94 | QDebug operator<<(QDebug s, const Attica::Provider& prov) | ||||
95 | { | ||||
96 | if (prov.isValid()) | ||||
97 | s.nospace() << "Provider(" << prov.name() << ':' << prov.baseUrl() << ')'; | ||||
98 | else | ||||
99 | s.nospace() << "Provider(Invalid)"; | ||||
100 | return s.space(); | ||||
101 | } | ||||
102 | | ||||
94 | class Provider::Private : public QSharedData | 103 | class Provider::Private : public QSharedData | ||
95 | { | 104 | { | ||
96 | public: | 105 | public: | ||
97 | QUrl m_baseUrl; | 106 | QUrl m_baseUrl; | ||
98 | QUrl m_icon; | 107 | QUrl m_icon; | ||
99 | QString m_name; | 108 | QString m_name; | ||
100 | QString m_credentialsUserName; | 109 | QString m_credentialsUserName; | ||
101 | QString m_credentialsPassword; | 110 | QString m_credentialsPassword; | ||
▲ Show 20 Lines • Show All 1616 Lines • Show Last 20 Lines |