Attica
provider.h
94 * The server provides the services specified in the services section, not necessarily all of them.
148 This should be used as identifier when referring to this provider but you don't want to use the full provider object.
306 PostJob *registerAccount(const QString &id, const QString &password, const QString &mail, const QString &firstName, const QString &lastName);
311 ListJob<Person> *requestPersonSearchByLocation(qreal latitude, qreal longitude, qreal distance = 0.0, int page = 0, int pageSize = 20);
312 PostJob *postLocation(qreal latitude, qreal longitude, const QString &city = QString(), const QString &country = QString());
366 ListJob<Achievement> *requestAchievements(const QString &contentId, const QString &achievementId, const QString &userId);
373 ItemPostJob<Achievement> *addNewAchievement(const QString &id, const Achievement &newAchievement);
379 PutJob *editAchievement(const QString &contentId, const QString &achievementId, const Achievement &achievement);
382 * Deletes an achievement on the server. The achievement passed as an argument doesn't need complete
389 PostJob *setAchievementProgress(const QString &id, const QVariant &progress, const QDateTime ×tamp);
540 Attica::PostJob *uploadTarballToBuildService(const QString &projectId, const QString &fileName, const QByteArray &payload);
580 searchContents(const Category::List &categories, const QString &search = QString(), SortMode mode = Rating, uint page = 0, uint pageSize = 10);
600 @param distributions list of distributions to filter by, if empty no filtering by distribution is done
624 ItemJob<DownloadItem> *downloadLink(const QString &contentId, const QString &itemId = QStringLiteral("1"));
634 ItemPostJob<Content> *editContent(const Category &updatedCategory, const QString &contentId, const Content &updatedContent);
637 PostJob *setDownloadFile(const QString &contentId, const QString &fileName, QIODevice *payload);
638 PostJob *setDownloadFile(const QString &contentId, const QString &fileName, const QByteArray &payload);
647 PostJob *setPreviewImage(const QString &contentId, const QString &previewId, const QString &fileName, const QByteArray &image);
653 ListJob<KnowledgeBaseEntry> *searchKnowledgeBase(const Content &content, const QString &search, SortMode, int page, int pageSize);
658 ListJob<Event> *requestEvent(const QString &country, const QString &search, const QDate &startAt, SortMode mode, int page, int pageSize);
662 * @param comment::Type type of the comment @see Comment::Type (content / forum / knowledgebase / event)
669 ListJob<Comment> *requestComments(const Comment::Type commentType, const QString &id, const QString &id2, int page, int pageSize);
672 * @param commentType type of the comment @see CommentType (content / forum / knowledgebase / event)
701 ListJob<Topic> *requestTopics(const QString &forum, const QString &search, const QString &description, SortMode mode, int page, int pageSize);
727 Provider(PlatformDependent *internals, const QUrl &baseUrl, const QString &name, const QUrl &icon = QUrl());
Represents the money in the account of the user.
Definition accountbalance.h:23
Represents the ouput of a build service job.
Definition buildservicejoboutput.h:26
The Distribution class contains information about one distribution that the server offers.
Definition distribution.h:27
The HomePageType class contains information about one home page type.
Definition homepagetype.h:27
The License class contains information about one license that the server offers.
Definition license.h:24
The Provider class represents one Open Collaboration Service provider.
Definition provider.h:97
bool hasActivityService() const
Test if the server supports the activity part of the API.
Definition provider.cpp:1823
QString name() const
A name for the provider that can be displayed to the user.
Definition provider.cpp:340
QString messageServiceVersion() const
Version of the message part of the API.
Definition provider.cpp:1809
QString contentServiceVersion() const
Version of the content part of the API.
Definition provider.cpp:1789
QString personServiceVersion() const
Version of the person part of the API.
Definition provider.cpp:1813
bool hasCredentials() const
Test if the provider has user name/password available.
Definition provider.cpp:359
QString additionalAgentInformation() const
The custom identifier sent along with requests.
Definition provider.cpp:335
bool hasForumService() const
Test if the server supports the forum part of the API.
Definition provider.cpp:1839
bool hasMessageService() const
Test if the server supports the message part of the API.
Definition provider.cpp:1851
ItemJob< PrivateData > * requestPrivateData(const QString &app, const QString &key=QString())
Fetches the a given attribute from an OCS-compliant server.
Definition provider.cpp:1681
bool saveCredentials(const QString &user, const QString &password)
Sets (and remembers) user name and password for this provider.
Definition provider.cpp:382
bool hasFriendService() const
Test if the server supports the friend part of the API.
Definition provider.cpp:1843
bool hasAchievementService() const
Test if the server supports the achievement part of the API.
Definition provider.cpp:1818
bool loadCredentials(QString &user, QString &password)
Load user name and password from the store.
Definition provider.cpp:368
QString achievementServiceVersion() const
Version of the achievement part of the API.
Definition provider.cpp:1776
QString knowledgebaseServiceVersion() const
Version of the knowledgebase part of the API.
Definition provider.cpp:1805
bool hasCommentService() const
Test if the server supports the comments part of the API.
Definition provider.cpp:1827
QString forumServiceVersion() const
Version of the forum part of the API.
Definition provider.cpp:1797
PostJob * checkLogin(const QString &user, const QString &password)
Test if the server accepts the login/password.
Definition provider.cpp:393
void setAdditionalAgentInformation(const QString &additionalInformation)
Set a custom identifier for your application (sent along with the requests as the http agent header i...
Definition provider.cpp:330
bool hasContentService() const
Test if the server supports the content part of the API.
Definition provider.cpp:1831
bool isValid() const
Returns true if the provider has been set up and can be used.
Definition provider.cpp:307
bool hasPersonService() const
Test if the server supports the person part of the API.
Definition provider.cpp:1855
ItemJob< PrivateData > * requestPrivateData()
Fetches all stored private data.
Definition provider.h:329
QString friendServiceVersion() const
Version of the friend part of the API.
Definition provider.cpp:1801
QString commentServiceVersion() const
Version of the comments part of the API.
Definition provider.cpp:1785
bool hasKnowledgebaseService() const
Test if the server supports the knowledgebase part of the API.
Definition provider.cpp:1847
bool hasFanService() const
Test if the server supports the fan part of the API.
Definition provider.cpp:1835
QString activityServiceVersion() const
Version of the activity part of the API.
Definition provider.cpp:1781
Q_SCRIPTABLE CaptureState status()
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:04 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.