| platformdependent.h | | platformdependent.h | |
| | | | |
| skipping to change at line 45 | | skipping to change at line 45 | |
| class QString; | | class QString; | |
| class QUrl; | | class QUrl; | |
| | | | |
| namespace Attica { | | namespace Attica { | |
| | | | |
| class PlatformDependent | | class PlatformDependent | |
| { | | { | |
| public: | | public: | |
| virtual ~PlatformDependent() {} | | virtual ~PlatformDependent() {} | |
| virtual QList<QUrl> getDefaultProviderFiles() const = 0; | | virtual QList<QUrl> getDefaultProviderFiles() const = 0; | |
|
| | | virtual bool hasCredentials(const QUrl& baseUrl) const = 0; | |
| virtual bool loadCredentials(const QUrl& baseUrl, QString& user, QStrin
g& password) = 0; | | virtual bool loadCredentials(const QUrl& baseUrl, QString& user, QStrin
g& password) = 0; | |
| virtual bool askForCredentials(const QUrl& baseUrl, QString& user, QStr
ing& password) = 0; | | virtual bool askForCredentials(const QUrl& baseUrl, QString& user, QStr
ing& password) = 0; | |
| virtual bool saveCredentials(const QUrl& baseUrl, const QString& user,
const QString& password) = 0; | | virtual bool saveCredentials(const QUrl& baseUrl, const QString& user,
const QString& password) = 0; | |
| virtual QNetworkReply* get(const QNetworkRequest& request) = 0; | | virtual QNetworkReply* get(const QNetworkRequest& request) = 0; | |
| virtual QNetworkReply* post(const QNetworkRequest& request, QIODevice*
data) = 0; | | virtual QNetworkReply* post(const QNetworkRequest& request, QIODevice*
data) = 0; | |
| virtual QNetworkReply* post(const QNetworkRequest& request, const QByte
Array& data) = 0; | | virtual QNetworkReply* post(const QNetworkRequest& request, const QByte
Array& data) = 0; | |
| virtual QNetworkAccessManager* nam() = 0; | | virtual QNetworkAccessManager* nam() = 0; | |
| }; | | }; | |
| | | | |
| } | | } | |
| | | | |
End of changes. 1 change blocks. |
| 0 lines changed or deleted | | 1 lines changed or added | |
|
| provider.h | | provider.h | |
| | | | |
| skipping to change at line 66 | | skipping to change at line 66 | |
| class Provider; | | class Provider; | |
| class AccountBalance; | | class AccountBalance; | |
| | | | |
| /** | | /** | |
| * The Provider class represents one Open Collaboration Service provider. | | * The Provider class represents one Open Collaboration Service provider. | |
| * Use the ProviderManager to instanciate a Provider. | | * Use the ProviderManager to instanciate a Provider. | |
| * | | * | |
| * Accessing funtions of the Provider returns a Job class that | | * Accessing funtions of the Provider returns a Job class that | |
| * takes care of accessing the server and parsing the result. | | * takes care of accessing the server and parsing the result. | |
| */ | | */ | |
|
| class ATTICA_EXPORT Provider :public QObject | | class ATTICA_EXPORT Provider | |
| { | | { | |
|
| Q_OBJECT | | | |
| | | | |
| public: | | public: | |
| Provider(); | | Provider(); | |
| Provider(const Provider& other); | | Provider(const Provider& other); | |
| Provider& operator=(const Provider& other); | | Provider& operator=(const Provider& other); | |
| ~Provider(); | | ~Provider(); | |
| | | | |
| bool isValid() const; | | bool isValid() const; | |
| QUrl baseUrl() const; | | QUrl baseUrl() const; | |
| QString name() const; | | QString name() const; | |
| | | | |
| enum SortMode { | | enum SortMode { | |
| Newest, | | Newest, | |
| Alphabetical, | | Alphabetical, | |
| Rating, | | Rating, | |
| Downloads | | Downloads | |
| }; | | }; | |
| | | | |
|
| | | bool hasCredentials(); | |
| | | bool loadCredentials(QString& user, QString& password); | |
| | | bool saveCredentials(const QString& user, const QString& password); | |
| | | | |
| PostJob* checkLogin(const QString& user, const QString& password); | | PostJob* checkLogin(const QString& user, const QString& password); | |
| | | | |
| // Person part of OCS | | // Person part of OCS | |
| | | | |
| PostJob* registerAccount(const QString& id, const QString& password, co
nst QString& mail, const QString& firstName, const QString& lastName); | | PostJob* registerAccount(const QString& id, const QString& password, co
nst QString& mail, const QString& firstName, const QString& lastName); | |
| ItemJob<Person>* requestPerson(const QString& id); | | ItemJob<Person>* requestPerson(const QString& id); | |
| ItemJob<Person>* requestPersonSelf(); | | ItemJob<Person>* requestPersonSelf(); | |
| ItemJob<AccountBalance>* requestAccountBalance(); | | ItemJob<AccountBalance>* requestAccountBalance(); | |
| ListJob<Person>* requestPersonSearchByName(const QString& name); | | ListJob<Person>* requestPersonSearchByName(const QString& name); | |
| ListJob<Person>* requestPersonSearchByLocation(qreal latitude, qreal lo
ngitude, qreal distance = 0.0, int page = 0, int pageSize = 20); | | ListJob<Person>* requestPersonSearchByLocation(qreal latitude, qreal lo
ngitude, qreal distance = 0.0, int page = 0, int pageSize = 20); | |
| | | | |
End of changes. 3 change blocks. |
| 3 lines changed or deleted | | 5 lines changed or added | |
|