SharingService Class Reference

The sharing service class contains the API instructions to interact with a location sharing service. (ipoki.com). More...

#include <SharingService.h>

List of all members.

Public Slots

void recvShareAnswer ()
 Slot called upon reception of a sharing confirmation.
void recvLoginAnswer ()
 Slot called upon reception of a login answer.
void recvMeAnswer ()
 Slot called upon the reception of the user's position.
void recvFriendAnswer ()
 Slot called upon reception of the user's friends' positions.

Signals

void status (QString s)
void error (QString err)
void meReference (QByteArray x, QByteArray y)
void friendReference (QString id, QByteArray x, QByteArray y)
void loggedIn (bool, QString)
void shared (bool, QString)

Public Member Functions

 SharingService (QObject *parent=0)
 COnstruct a Sharing Service Object.
void login (QString user, QString pass)
 Login at the Location sharing service.
void getMe ()
 Get the user's position from the LSS.
void getFriends ()
 get the user's friends and their position
void share (double lat, double lng)
 Share: upload a user's position to the LSS.

Detailed Description

The sharing service class contains the API instructions to interact with a location sharing service. (ipoki.com).

As this class is tightly realted to one given location sharing service, it has to be replaced by a different class to interact with a differnt location sharing serivce. In this case, it contains the API instructions to talk to ipoki.com. It offers the required functions to login, to retrive the users position, to update the users position and to retrieve a list of friends and their positions.


Member Function Documentation

void SharingService::login ( QString  u,
QString  p 
)

Login at the Location sharing service.

Parameters:
u is the id of the user
p is the password of the user

The documentation for this class was generated from the following files:
Generated on Thu Jun 24 21:31:43 2010 for PrivL by  doxygen 1.6.3