MySocials driver programming interface. More...
#include <qtransport.h>
Public Types | |
| enum | Action { getListMethodsAction, getProfileAction, getListFriendsAction, deleteFriendAction, getSettingsAction, setSettingsAction, getMessagesAction, 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 | messagesReceived (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 | |
| bool | checkFunction (const QString &usedClass, const QString &usedFunction) const |
| QTransport (QString libName, QString accName, QObject *parent=0) | |
| QString | serviceName () 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 alsoLoadIcons) |
| bool | deleteFriend (QString ownerId) |
| bool | deleteFriend (Friend owner) |
| void | getAlbums (QString ownedId, bool alsoLoadIcons) |
| void | getPhotos (QString ownerId, QString albumId, bool alsoLoadIcons) |
| 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 | getMessages () |
| loalist of messages from service. | |
| 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 QString | generateFileName (const QString &path, const QString &url) |
| 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::getMessages | ( | ) |
loalist of messages from service.
Uses getInbox(), getOutbox() and getThreads().
| void QTransport::getProfile | ( | const QString & | ownerId | ) |
Gets profile by owner Id.
The profile returns by signal profileReceived().
| ownerId | The ID of owner. |
| void QTransport::getProfile | ( | ) |
Gets own profile.
The profile returns by signal profileReceived().
| void QTransport::init | ( | QString | proxyHost, | |
| uint | proxyPort | |||
| ) |
| strProxyHost |
|
1.6.3