|
mysocials-core 1.0
|
MySocials driver programming interface. More...
#include <qtransport.h>
Public Types | |
| enum | Action { getListMethodsAction, getProfileAction, getListFriendsAction, deleteFriendAction, getSettingsAction, setSettingsAction, getOutboxMessagesAction, getInboxMessagesAction, sendMessageAction, readMessageAction, deleteMessageAction, getPhotoAction, uploadPhotoAction, getListPhotosAction, getCommentsAction, sendCommentAction, getListAlbumsAction, getFeedAction } |
List of supported actions. More... | |
Signals | |
| void | albumsReceived (QString accountid, QString friendId, AlbumList, bool isLastUpdate) |
| void | photosReceived (QString accountid, QString friendId, QString albumId, PhotoList, bool isLastUpdate) |
| void | photoUploaded (QString accountId, QString albumId, QString local_file_name, QString photoId) |
| void | commentsReceived (QString accountId, QString friendId, QString albumId, QString photoId, PhotoCommentList list) |
| void | friendsReceived (QString accountid, FriendList, bool isLastUpdate) |
| void | friendDeleted (QString accountId, QString friendId) |
| void | settingsReceived (QString accountid, QString) const |
| void | profileReceived (QString accountId, QString reqOwnerId, Friend data) |
| void | inboxMessagesReceived (QString accountId, MessageList list, bool isLastUpdate) |
| void | outboxMessagesReceived (QString accountId, MessageList list, bool isLastUpdate) |
| void | messageSended (QString accountId, QString ownerId, QString title, QString text) |
| void | messageReaded (QString accountId, QString messageId) |
| void | messageDeleted (QString accountId, QString messageId) |
| void | errorOccurred (QString accountId, QErrorMessage msg, QTransport::Action acc) const |
| void | eventFeedReceived (QString accountId, QEventFeedList list, QEventFeed::FeedType type, bool isLastUpdate) |
Public Member Functions | |
| QTransport (QString libName, QString accName, QObject *parent=0) | |
| QString | serviceName () const |
| QString | generateFileName (const QString &path, const QString &url) const |
| DriverInfo * | getDriverInfo () |
| void | init (QString proxyHost, uint proxyPort) |
| void | setSettings (QString settings) |
| void | close () |
| bool | ready () |
| void | getProfile () |
| Gets own profile. | |
| void | getProfile (const QString &ownerId) |
| Gets profile by owner Id. | |
| void | getFriends () |
| bool | deleteFriend (QString ownerId) |
| bool | deleteFriend (Friend owner) |
| void | getAlbums (QString ownedId) |
| void | getPhotos (QString ownerId, QString albumId) |
| void | getPhotoComments (Photo photo) |
| bool | sendPhotoComment (Photo photo, QString comment) |
| bool | uploadPhoto (QString accountId, QString albumId, QString file_name, QString description) |
| bool | uploadPhoto (Album al, QString local_file_name, QString description) |
| bool | downloadPhoto (QString url, QString local_file_name) |
| void | downloadPhotoList (PhotoList list, Photo curPhoto, int nearest) |
| void | getInbox () |
| void | getOutbox () |
| void | getThreadList () |
| bool | sendMessage (QString ownerId, QString title, QString message) |
| bool | sendMessage (Friend owner, QString title, QString message) |
| bool | readMessage (QString messageId) |
| bool | readMessage (Message msg) |
| bool | deleteMessage (QString messageId) |
| bool | deleteMessage (Message msg) |
| void | getFeed (QEventFeed::FeedType type) |
| Gets feed from service. | |
Static Public Member Functions | |
| static DriverInfo * | getDriverInfo (QString libraryPath) |
Public Attributes | |
| QString | accountId |
| Account ID. uses to identify account of service (e.g. vkontakte0) | |
| QString | libraryName |
| the name of library file (e.g. libvkontakte.so) | |
MySocials driver programming interface.
This class describes MySocials driver programming interface. It based on MySocials API.
| enum QTransport::Action |
List of supported actions.
Each action corresponds function in MySocials API.
| void QTransport::getFeed | ( | QEventFeed::FeedType | type | ) |
Gets feed from service.
Feed returns by eventFeedReceived signal.
| void QTransport::getProfile | ( | ) |
Gets own profile.
The profile returns by signal profileReceived().
| void QTransport::getProfile | ( | const QString & | ownerId | ) |
Gets profile by owner Id.
The profile returns by signal profileReceived().
| ownerId | The ID of owner. |
| void QTransport::init | ( | QString | proxyHost, |
| uint | proxyPort | ||
| ) |
| strProxyHost | |
| strProxyPort |
1.7.3