Attica 5.109.0
|
The Provider class represents one Open Collaboration Service provider. More...
#include <Attica/Provider>
Public Types | |
enum | SortMode { Newest , Alphabetical , Rating , Downloads } |
Public Member Functions | |
Provider (const Provider &other) | |
QString | achievementServiceVersion () const |
Version of the achievement part of the API. | |
QString | activityServiceVersion () const |
Version of the activity part of the API. | |
QString | additionalAgentInformation () const |
The custom identifier sent along with requests. | |
ItemPostJob< Achievement > * | addNewAchievement (const QString &id, const Achievement &newAchievement) |
Add a new achievement. | |
ItemPostJob< Comment > * | addNewComment (const Comment::Type commentType, const QString &id, const QString &id2, const QString &parentId, const QString &subject, const QString &message) |
Add a new comment. | |
ItemPostJob< Content > * | addNewContent (const Category &category, const Content &newContent) |
PostJob * | approveFriendship (const QString &to) |
QUrl | baseUrl () const |
A url that identifies this provider. | |
PostJob * | becomeFan (const QString &contentId) |
PostJob * | cancelBuildServiceJob (const BuildServiceJob &job) |
Cancel a job. | |
PostJob * | cancelFriendship (const QString &to) |
PostJob * | checkLogin (const QString &user, const QString &password) |
Test if the server accepts the login/password. | |
QString | commentServiceVersion () const |
Version of the comments part of the API. | |
QString | contentServiceVersion () const |
Version of the content part of the API. | |
PostJob * | createBuildServiceJob (const BuildServiceJob &job) |
Create a new job for a given project on a given buildservice for a given target. | |
PostJob * | createProject (const Project &project) |
Post modifications to a Project on the server. | |
PostJob * | createRemoteAccount (const RemoteAccount &account) |
Create a new remote account, an account for a build service instance which is stored in the OCS service in order to authenticate with the build service instance. | |
PostJob * | declineFriendship (const QString &to) |
DeleteJob * | deleteAchievement (const QString &contentId, const QString &achievementId) |
Deletes an achievement on the server. | |
PostJob * | deleteContent (const QString &contentId) |
PostJob * | deleteDownloadFile (const QString &contentId) |
PostJob * | deletePreviewImage (const QString &contentId, const QString &previewId) |
PostJob * | deleteProject (const Project &project) |
Deletes a project on the server. | |
PostJob * | deleteRemoteAccount (const QString &id) |
Deletes a remote account stored on the OCS server. | |
ItemJob< DownloadItem > * | downloadLink (const QString &contentId, const QString &itemId=QStringLiteral("1")) |
PutJob * | editAchievement (const QString &contentId, const QString &achievementId, const Achievement &achievement) |
Post modifications to an Achievement on the server. | |
ItemPostJob< Content > * | editContent (const Category &updatedCategory, const QString &contentId, const Content &updatedContent) |
PostJob * | editProject (const Project &project) |
Post modifications to a Project on the server. | |
PostJob * | editRemoteAccount (const RemoteAccount &account) |
Edit an existing remote account. | |
QString | fanServiceVersion () const |
Version of the fan part of the API. | |
QString | forumServiceVersion () const |
Version of the forum part of the API. | |
QString | friendServiceVersion () const |
Version of the friend part of the API. | |
const QString & | getRegisterAccountUrl () const |
bool | hasAchievementService () const |
Test if the server supports the achievement part of the API. | |
bool | hasActivityService () const |
Test if the server supports the activity part of the API. | |
bool | hasCommentService () const |
Test if the server supports the comments part of the API. | |
bool | hasContentService () const |
Test if the server supports the content part of the API. | |
bool | hasCredentials () |
bool | hasCredentials () const |
Test if the provider has user name/password available. | |
bool | hasFanService () const |
Test if the server supports the fan part of the API. | |
bool | hasForumService () const |
Test if the server supports the forum part of the API. | |
bool | hasFriendService () const |
Test if the server supports the friend part of the API. | |
bool | hasKnowledgebaseService () const |
Test if the server supports the knowledgebase part of the API. | |
bool | hasMessageService () const |
Test if the server supports the message part of the API. | |
bool | hasPersonService () const |
Test if the server supports the person part of the API. | |
QUrl | icon () const |
An icon used to visually identify this provider. | |
PostJob * | inviteFriend (const QString &to, const QString &message) |
bool | isEnabled () const |
Test if the provider is enabled by the settings. | |
bool | isValid () const |
Returns true if the provider has been set up and can be used. | |
QString | knowledgebaseServiceVersion () const |
Version of the knowledgebase part of the API. | |
bool | loadCredentials (QString &user, QString &password) |
Load user name and password from the store. | |
QString | messageServiceVersion () const |
Version of the message part of the API. | |
QString | name () const |
A name for the provider that can be displayed to the user. | |
Provider & | operator= (const Provider &other) |
QString | personServiceVersion () const |
Version of the person part of the API. | |
PostJob * | postActivity (const QString &message) |
PostJob * | postLocation (qreal latitude, qreal longitude, const QString &city=QString(), const QString &country=QString()) |
PostJob * | postMessage (const Message &message) |
PostJob * | postTopic (const QString &forumId, const QString &subject, const QString &content) |
PostJob * | publishBuildJob (const BuildServiceJob &buildjob, const Publisher &publisher) |
Publish the result of a completed build job to a publisher. | |
PostJob * | registerAccount (const QString &id, const QString &password, const QString &mail, const QString &firstName, const QString &lastName) |
ItemJob< AccountBalance > * | requestAccountBalance () |
ListJob< Achievement > * | requestAchievements (const QString &contentId, const QString &achievementId, const QString &userId) |
Get a list of achievements. | |
ListJob< Activity > * | requestActivities () |
ItemJob< BuildService > * | requestBuildService (const QString &id) |
Get the information for a specific build service instance. | |
ItemJob< BuildServiceJob > * | requestBuildServiceJob (const QString &id) |
Get the information for a specific build service job, such as status and progress. | |
ItemJob< BuildServiceJobOutput > * | requestBuildServiceJobOutput (const QString &id) |
Get the build output for a specific build service job. | |
ListJob< BuildServiceJob > * | requestBuildServiceJobs (const Project &project) |
Get a list of build service projects. | |
ListJob< BuildService > * | requestBuildServices () |
Get a list of build service build services. | |
ListJob< Category > * | requestCategories () |
Get a list of categories (such as wallpaper) | |
ListJob< Comment > * | requestComments (const Comment::Type commentType, const QString &id, const QString &id2, int page, int pageSize) |
Request a list of comments for a content / forum / knowledgebase / event. | |
ItemJob< Config > * | requestConfig () |
Fetches server config. | |
ItemJob< Content > * | requestContent (const QString &contentId) |
Retrieve a single content. | |
ListJob< Distribution > * | requestDistributions () |
Get a list of distributions (such as Ark, Debian) | |
ListJob< Event > * | requestEvent (const QString &country, const QString &search, const QDate &startAt, SortMode mode, int page, int pageSize) |
ItemJob< Event > * | requestEvent (const QString &id) |
ListJob< Person > * | requestFans (const QString &contentId, uint page=0, uint pageSize=10) |
ListJob< Folder > * | requestFolders () |
ListJob< Forum > * | requestForums (uint page=0, uint pageSize=10) |
ListJob< Person > * | requestFriends (const QString &id, int page=0, int pageSize=20) |
ListJob< HomePageType > * | requestHomePageTypes () |
Get a list of home page types (such as blog, Facebook) | |
ItemJob< KnowledgeBaseEntry > * | requestKnowledgeBaseEntry (const QString &id) |
ListJob< License > * | requestLicenses () |
Get a list of licenses (such as GPL) | |
ItemJob< Message > * | requestMessage (const Folder &folder, const QString &id) |
ListJob< Message > * | requestMessages (const Folder &folder) |
ListJob< Message > * | requestMessages (const Folder &folder, Message::Status status) |
ItemJob< Person > * | requestPerson (const QString &id) |
ListJob< Person > * | requestPersonSearchByLocation (qreal latitude, qreal longitude, qreal distance=0.0, int page=0, int pageSize=20) |
ListJob< Person > * | requestPersonSearchByName (const QString &name) |
ItemJob< Person > * | requestPersonSelf () |
ItemJob< PrivateData > * | requestPrivateData () |
Fetches all stored private data. | |
ItemJob< PrivateData > * | requestPrivateData (const QString &app, const QString &key=QString()) |
Fetches the a given attribute from an OCS-compliant server. | |
ItemJob< Project > * | requestProject (const QString &id) |
Get a Project's data. | |
ListJob< Project > * | requestProjects () |
Get a list of build service projects. | |
ItemJob< Publisher > * | requestPublisher (const QString &id) |
Get the information for a specific publisher. | |
ListJob< Publisher > * | requestPublishers () |
Get a list of publishers. | |
ListJob< Person > * | requestReceivedInvitations (int page=0, int pageSize=20) |
ItemJob< RemoteAccount > * | requestRemoteAccount (const QString &id) |
Get a remote account by its ID. | |
ListJob< RemoteAccount > * | requestRemoteAccounts () |
Get a list of remote accounts, account for a build service instance which is stored in the OCS service in order to authenticate with the build service instance. | |
ListJob< Person > * | requestSentInvitations (int page=0, int pageSize=20) |
ListJob< Topic > * | requestTopics (const QString &forum, const QString &search, const QString &description, SortMode mode, int page, int pageSize) |
DeleteJob * | resetAchievementProgress (const QString &id) |
bool | saveCredentials (const QString &user, const QString &password) |
Sets (and remembers) user name and password for this provider. | |
PostJob * | savePublisherField (const Project &project, const PublisherField &field) |
Save the value of a single publishing field. | |
ListJob< Content > * | searchContents (const Category::List &categories, const QString &person, const Distribution::List &distributions, const License::List &licenses, const QString &search=QString(), SortMode sortMode=Rating, uint page=0, uint pageSize=10) |
Request a list of Contents. | |
ListJob< Content > * | searchContents (const Category::List &categories, const QString &search=QString(), SortMode mode=Rating, uint page=0, uint pageSize=10) |
Request a list of Contents. | |
ListJob< Content > * | searchContentsByPerson (const Category::List &categories, const QString &person, const QString &search=QString(), SortMode mode=Rating, uint page=0, uint pageSize=10) |
Request a list of Contents. | |
ListJob< KnowledgeBaseEntry > * | searchKnowledgeBase (const Content &content, const QString &search, SortMode, int page, int pageSize) |
PostJob * | setAchievementProgress (const QString &id, const QVariant &progress, const QDateTime ×tamp) |
void | setAdditionalAgentInformation (const QString &additionalInformation) |
Set a custom identifier for your application (sent along with the requests as the http agent header in addition to the application name and version). | |
PostJob * | setDownloadFile (const QString &contentId, const QString &fileName, const QByteArray &payload) |
PostJob * | setDownloadFile (const QString &contentId, const QString &fileName, QIODevice *payload) |
void | setEnabled (bool enabled) |
PostJob * | setPreviewImage (const QString &contentId, const QString &previewId, const QString &fileName, const QByteArray &image) |
Upload an image file as preview for the content. | |
PostJob * | setPrivateData (const QString &app, const QString &key, const QString &value) |
Sets the value of an attribute. | |
Attica::PostJob * | uploadTarballToBuildService (const QString &projectId, const QString &fileName, const QByteArray &payload) |
Upload a tarball to the buildservice. | |
PostJob * | voteForComment (const QString &id, uint rating) |
Vote a comment item. | |
PostJob * | voteForContent (const QString &contentId, uint rating) |
Vote for a content item. | |
Protected Member Functions | |
QNetworkRequest | createRequest (const QString &path) |
QNetworkRequest | createRequest (const QUrl &url) |
QUrl | createUrl (const QString &path) |
ItemJob< AccountBalance > * | doRequestAccountBalance (const QUrl &url) |
ListJob< Achievement > * | doRequestAchievementList (const QUrl &url) |
ListJob< Activity > * | doRequestActivityList (const QUrl &url) |
ItemJob< Config > * | doRequestConfig (const QUrl &url) |
ListJob< Folder > * | doRequestFolderList (const QUrl &url) |
ListJob< Forum > * | doRequestForumList (const QUrl &url) |
ListJob< Message > * | doRequestMessageList (const QUrl &url) |
ItemJob< Person > * | doRequestPerson (const QUrl &url) |
ListJob< Person > * | doRequestPersonList (const QUrl &url) |
ListJob< Topic > * | doRequestTopicList (const QUrl &url) |
The Provider class represents one Open Collaboration Service provider.
Use the ProviderManager to instantiate a Provider.
Accessing functions of the Provider returns a Job class that takes care of accessing the server and parsing the result.
Provider files are xml of the form:
<provider> <id>opendesktop</id> <location>https://api.opendesktop.org/v1/</location> <name>openDesktop.org</name> <icon></icon> <termsofuse>https://opendesktop.org/terms/</termsofuse> <register>https://opendesktop.org/usermanager/new.php</register> <services> <person ocsversion="1.3" > <friend ocsversion="1.3" > <message ocsversion="1.3" > <activity ocsversion="1.3" > <content ocsversion="1.3" > <fan ocsversion="1.3" > <knowledgebase ocsversion="1.3" > <event ocsversion="1.3" > <comment ocsversion="1.2" > </services> </provider>
The server provides the services specified in the services section, not necessarily all of them.
QString Attica::Provider::achievementServiceVersion | ( | ) | const |
Version of the achievement part of the API.
QString Attica::Provider::activityServiceVersion | ( | ) | const |
Version of the activity part of the API.
QString Attica::Provider::additionalAgentInformation | ( | ) | const |
The custom identifier sent along with requests.
ItemPostJob< Achievement > * Attica::Provider::addNewAchievement | ( | const QString & | id, |
const Achievement & | newAchievement | ||
) |
Add a new achievement.
id | id of the achievement entry |
achievement | The new Achievement added |
ItemPostJob< Comment > * Attica::Provider::addNewComment | ( | const Comment::Type | commentType, |
const QString & | id, | ||
const QString & | id2, | ||
const QString & | parentId, | ||
const QString & | subject, | ||
const QString & | message | ||
) |
Add a new comment.
commentType | type of the comment |
id | id of the content entry where you want to get the comments is from |
id2 | id of the sub content entry where you want to get the comments is from |
parentId | the id of the parent comment if the new comment is a reply |
subject | title of the comment |
message | text of the comment |
QUrl Attica::Provider::baseUrl | ( | ) | const |
A url that identifies this provider.
This should be used as identifier when referring to this provider but you don't want to use the full provider object.
PostJob * Attica::Provider::cancelBuildServiceJob | ( | const BuildServiceJob & | job | ) |
Cancel a job.
Setting the ID on the build service parameter is enough for it to work.
job | Buildservicejob to cancel on the server, needs at least id set. |
PostJob * Attica::Provider::checkLogin | ( | const QString & | user, |
const QString & | password | ||
) |
Test if the server accepts the login/password.
This function does not actually set the credentials. Use saveCredentials for that purpose.
user | the user (login) name |
password | the password |
QString Attica::Provider::commentServiceVersion | ( | ) | const |
Version of the comments part of the API.
QString Attica::Provider::contentServiceVersion | ( | ) | const |
Version of the content part of the API.
PostJob * Attica::Provider::createBuildServiceJob | ( | const BuildServiceJob & | job | ) |
Create a new job for a given project on a given buildservice for a given target.
Those three items are mandatory for the job to succeed.
job | Buildservicejob to create on the server |
PostJob * Attica::Provider::createRemoteAccount | ( | const RemoteAccount & | account | ) |
Create a new remote account, an account for a build service instance which is stored in the OCS service in order to authenticate with the build service instance.
Type, Type ID, login and password are mandatory.
account | RemoteAccount to create on the server |
DeleteJob * Attica::Provider::deleteAchievement | ( | const QString & | contentId, |
const QString & | achievementId | ||
) |
Deletes an achievement on the server.
The achievement passed as an argument doesn't need complete information as just the id() is used.
achievement | Achievement to delete on the server. |
Deletes a project on the server.
The project passed as an argument doesn't need complete information as just the id() is used.
project | Project to delete on the server. |
PostJob * Attica::Provider::deleteRemoteAccount | ( | const QString & | id | ) |
Deletes a remote account stored on the OCS server.
id | The ID of the remote account on the OCS instance. |
PutJob * Attica::Provider::editAchievement | ( | const QString & | contentId, |
const QString & | achievementId, | ||
const Achievement & | achievement | ||
) |
Post modifications to an Achievement on the server.
achievement | Achievement to update on the server |
PostJob * Attica::Provider::editRemoteAccount | ( | const RemoteAccount & | account | ) |
Edit an existing remote account.
account | RemoteAccount to create on the server |
QString Attica::Provider::fanServiceVersion | ( | ) | const |
Version of the fan part of the API.
QString Attica::Provider::forumServiceVersion | ( | ) | const |
Version of the forum part of the API.
QString Attica::Provider::friendServiceVersion | ( | ) | const |
Version of the friend part of the API.
bool Attica::Provider::hasAchievementService | ( | ) | const |
Test if the server supports the achievement part of the API.
bool Attica::Provider::hasActivityService | ( | ) | const |
Test if the server supports the activity part of the API.
bool Attica::Provider::hasCommentService | ( | ) | const |
Test if the server supports the comments part of the API.
bool Attica::Provider::hasContentService | ( | ) | const |
Test if the server supports the content part of the API.
bool Attica::Provider::hasCredentials | ( | ) | const |
Test if the provider has user name/password available.
This does not yet open kwallet in case the KDE plugin is used.
bool Attica::Provider::hasFanService | ( | ) | const |
Test if the server supports the fan part of the API.
bool Attica::Provider::hasForumService | ( | ) | const |
Test if the server supports the forum part of the API.
bool Attica::Provider::hasFriendService | ( | ) | const |
Test if the server supports the friend part of the API.
bool Attica::Provider::hasKnowledgebaseService | ( | ) | const |
Test if the server supports the knowledgebase part of the API.
bool Attica::Provider::hasMessageService | ( | ) | const |
Test if the server supports the message part of the API.
bool Attica::Provider::hasPersonService | ( | ) | const |
Test if the server supports the person part of the API.
QUrl Attica::Provider::icon | ( | ) | const |
An icon used to visually identify this provider.
bool Attica::Provider::isEnabled | ( | ) | const |
Test if the provider is enabled by the settings.
The application can choose to ignore this, but the user settings should be respected.
bool Attica::Provider::isValid | ( | ) | const |
Returns true if the provider has been set up and can be used.
QString Attica::Provider::knowledgebaseServiceVersion | ( | ) | const |
Version of the knowledgebase part of the API.
bool Attica::Provider::loadCredentials | ( | QString & | user, |
QString & | password | ||
) |
Load user name and password from the store.
Attica will remember the loaded values and use them from this point on.
user | reference that returns the user name |
password | reference that returns the password |
QString Attica::Provider::messageServiceVersion | ( | ) | const |
Version of the message part of the API.
QString Attica::Provider::name | ( | ) | const |
A name for the provider that can be displayed to the user.
QString Attica::Provider::personServiceVersion | ( | ) | const |
Version of the person part of the API.
PostJob * Attica::Provider::publishBuildJob | ( | const BuildServiceJob & | buildjob, |
const Publisher & | publisher | ||
) |
Publish the result of a completed build job to a publisher.
ListJob< Achievement > * Attica::Provider::requestAchievements | ( | const QString & | contentId, |
const QString & | achievementId, | ||
const QString & | userId | ||
) |
Get a list of achievements.
ItemJob< BuildService > * Attica::Provider::requestBuildService | ( | const QString & | id | ) |
Get the information for a specific build service instance.
ItemJob< BuildServiceJob > * Attica::Provider::requestBuildServiceJob | ( | const QString & | id | ) |
Get the information for a specific build service job, such as status and progress.
ItemJob< BuildServiceJobOutput > * Attica::Provider::requestBuildServiceJobOutput | ( | const QString & | id | ) |
Get the build output for a specific build service job.
ListJob< BuildServiceJob > * Attica::Provider::requestBuildServiceJobs | ( | const Project & | project | ) |
Get a list of build service projects.
ListJob< BuildService > * Attica::Provider::requestBuildServices | ( | ) |
Get a list of build service build services.
Get a list of categories (such as wallpaper)
ListJob< Comment > * Attica::Provider::requestComments | ( | const Comment::Type | commentType, |
const QString & | id, | ||
const QString & | id2, | ||
int | page, | ||
int | pageSize | ||
) |
Request a list of comments for a content / forum / knowledgebase / event.
comment::Type | type of the comment |
id | id of the content entry where you want to get the comments is from |
id2 | id of the content entry where you want to get the comments is from |
page | request nth page in the list of results |
pageSize | requested size of pages when calculating the list of results |
Fetches server config.
Retrieve a single content.
contentId | the id of the content |
ListJob< Distribution > * Attica::Provider::requestDistributions | ( | ) |
Get a list of distributions (such as Ark, Debian)
ListJob< HomePageType > * Attica::Provider::requestHomePageTypes | ( | ) |
Get a list of home page types (such as blog, Facebook)
Get a list of licenses (such as GPL)
|
inline |
Fetches all stored private data.
ItemJob< PrivateData > * Attica::Provider::requestPrivateData | ( | const QString & | app, |
const QString & | key = QString() |
||
) |
Fetches the a given attribute from an OCS-compliant server.
app | The application name |
key | The key of the attribute to fetch (optional) |
Get a list of build service projects.
Get the information for a specific publisher.
Get a list of publishers.
ItemJob< RemoteAccount > * Attica::Provider::requestRemoteAccount | ( | const QString & | id | ) |
Get a remote account by its ID.
id | The ID of the remote account |
ListJob< RemoteAccount > * Attica::Provider::requestRemoteAccounts | ( | ) |
Get a list of remote accounts, account for a build service instance which is stored in the OCS service in order to authenticate with the build service instance.
bool Attica::Provider::saveCredentials | ( | const QString & | user, |
const QString & | password | ||
) |
Sets (and remembers) user name and password for this provider.
To remove the data an empty username should be passed.
user | the user (login) name |
password | the password |
PostJob * Attica::Provider::savePublisherField | ( | const Project & | project, |
const PublisherField & | field | ||
) |
Save the value of a single publishing field.
ListJob< Content > * Attica::Provider::searchContents | ( | const Category::List & | categories, |
const QString & | person, | ||
const Distribution::List & | distributions, | ||
const License::List & | licenses, | ||
const QString & | search = QString() , |
||
SortMode | sortMode = Rating , |
||
uint | page = 0 , |
||
uint | pageSize = 10 |
||
) |
Request a list of Contents.
More complete version. Note that categories
is not optional. If left empty, no results will be returned. An empty search string search
returns the top n items.
categories | categories to search in |
person | the person-id that created the contents |
distributions | list of distributions to filter by, if empty no filtering by distribution is done |
licenses | list of licenses to filter by, if empty no filtering by license is done |
search | optional search string (in name/description of the content) |
mode | sorting mode |
page | request nth page in the list of results |
pageSize | requested size of pages when calculating the list of results |
ListJob< Content > * Attica::Provider::searchContents | ( | const Category::List & | categories, |
const QString & | search = QString() , |
||
SortMode | mode = Rating , |
||
uint | page = 0 , |
||
uint | pageSize = 10 |
||
) |
Request a list of Contents.
Note that categories
is not optional. If left empty, no results will be returned. An empty search string search
returns the top n items.
categories | categories to search in |
search | optional search string (in name/description of the content) |
mode | sorting mode |
page | request nth page in the list of results |
pageSize | requested size of pages when calculating the list of results |
ListJob< Content > * Attica::Provider::searchContentsByPerson | ( | const Category::List & | categories, |
const QString & | person, | ||
const QString & | search = QString() , |
||
SortMode | mode = Rating , |
||
uint | page = 0 , |
||
uint | pageSize = 10 |
||
) |
Request a list of Contents.
Like
person | the person-id that created the contents. |
void Attica::Provider::setAdditionalAgentInformation | ( | const QString & | additionalInformation | ) |
Set a custom identifier for your application (sent along with the requests as the http agent header in addition to the application name and version).
For example, you might have an application named SomeApplication, version 23, and wish to send along the data "lookandfeel.knsrc". Call this function, and the resulting agent header would be:
SomeApplication/23 (+lookandfeel.knsrc)
If you do not set this (or set it to an empty string), the agent string becomes
SomeApplication/23
additionalAgentInformation | The extra string |
PostJob * Attica::Provider::setPreviewImage | ( | const QString & | contentId, |
const QString & | previewId, | ||
const QString & | fileName, | ||
const QByteArray & | image | ||
) |
Upload an image file as preview for the content.
contentId | |
previewId | each content can have previews with the id 1,2 or 3 |
payload | the image file |
PostJob * Attica::Provider::setPrivateData | ( | const QString & | app, |
const QString & | key, | ||
const QString & | value | ||
) |
Sets the value of an attribute.
app | The application name |
key | The key of the attribute |
value | The new value of the attribute |
Attica::PostJob * Attica::Provider::uploadTarballToBuildService | ( | const QString & | projectId, |
const QString & | fileName, | ||
const QByteArray & | payload | ||
) |
Upload a tarball to the buildservice.
projectId | The ID of the project this source file belongs to |
payload | A reference to the complete file data |
PostJob * Attica::Provider::voteForComment | ( | const QString & | id, |
uint | rating | ||
) |
Vote a comment item.
id | the comment id which this voting is for |
rating | the rating, must be between 0 (bad) and 100 (good) |
PostJob * Attica::Provider::voteForContent | ( | const QString & | contentId, |
uint | rating | ||
) |
Vote for a content item.
contentId | the content which this voting is for |
rating | - the rating, must be between 0 (bad) and 100 (good) |