QTransport Class Reference

MySocials driver programming interface. More...

#include <qtransport.h>

List of all members.

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
DriverInfogetDriverInfo ()
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 DriverInfogetDriverInfo (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)

Detailed Description

MySocials driver programming interface.

This class describes MySocials driver programming interface. It based on MySocials API.


Member Enumeration Documentation

List of supported actions.

Each action corresponds function in MySocials API.

Enumerator:
getListMethodsAction 

Class: settings. Method: getListMethods.

getProfileAction 

Class: profile. Method: getProfile.

getListFriendsAction 

Class: friends. Method: getListFriends.

deleteFriendAction 

Class: friends. Method: deleteFriend.

getSettingsAction 

Class: settings. Method: getSettings.

setSettingsAction 

Class: settings. Method: setSettings.

getMessagesAction 

Class: messages. Method: getListOutboxMessages.

sendMessageAction 

Class: messages. Method: sendMessage.

readMessageAction 

Class: messages. Method: readMessage.

deleteMessageAction 

Class: messages. Method: deleteMessage.

getPhotoAction 

Class: photos. Method: getPhoto.

uploadPhotoAction 

Class: photos. Method: uploadPhoto.

getListPhotosAction 

Class: photos. Method: getListPhotos.

getCommentsAction 

Class: photos. Method: getListPhotoComments.

sendCommentAction 

Class: photos. Method: sendPhotoComment.

getListAlbumsAction 

Class: photos. Method: getListAlbums.

getFeedAction 

Class: news. Method: getListNews.


Member Function Documentation

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().

Parameters:
ownerId The ID of owner.
void QTransport::getProfile (  ) 

Gets own profile.

The profile returns by signal profileReceived().

void QTransport::init ( QString  proxyHost,
uint  proxyPort 
)

init()

Parameters:
strProxyHost 
Parameters:
strProxyPort 

The documentation for this class was generated from the following files:
Generated on Tue Jul 19 11:01:25 2011 for mysocials-core by  doxygen 1.6.3