Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes

SugarAccountHandler Class Reference

#include <SugarUnixAccountHandler.h>

Inheritance diagram for SugarAccountHandler:
AccountHandler EventListener

List of all members.

Public Member Functions

 SugarAccountHandler ()
virtual ~SugarAccountHandler ()
virtual UT_UTF8String getStorageType ()
virtual UT_UTF8String getDescription ()
virtual UT_UTF8String getDisplayType ()
virtual void embedDialogWidgets (void *)
virtual void removeDialogWidgets (void *)
virtual bool canDelete ()
virtual bool canEditProperties ()
virtual void loadProperties ()
virtual void storeProperties ()
virtual ConnectResult connect ()
virtual bool disconnect ()
virtual bool isOnline ()
virtual BuddyPtr constructBuddy (const PropertyMap &props)
virtual BuddyPtr constructBuddy (const std::string &descriptor, BuddyPtr pBuddy)
virtual bool allowsManualBuddies ()
virtual void forceDisconnectBuddy (BuddyPtr pBuddy)
virtual bool hasAccess (const std::vector< std::string > &vAcl, BuddyPtr pBuddy)
virtual bool hasPersistentAccessControl ()
virtual bool recognizeBuddyIdentifier (const std::string &identifier)
virtual bool allowsSessionTakeover ()
virtual bool canManuallyStartSession ()
virtual bool send (const Packet *pPacket)
virtual bool send (const Packet *pPacket, BuddyPtr buddy)
PacketcreatePacket (const std::string &packet, BuddyPtr pBuddy)
void handleEvent (Session &pSession)
virtual void signal (const Event &event, BuddyPtr pSource)
SugarBuddyPtr getBuddy (const UT_UTF8String &dbusAddress)
bool offerTube (FV_View *pView, const UT_UTF8String &tubeDBusAddress)
bool joinTube (FV_View *pView, const UT_UTF8String &tubeDBusAddress)
bool disconnectTube (FV_View *pView)
bool joinBuddy (FV_View *pView, const UT_UTF8String &buddyDBusAddress)
bool disjoinBuddy (FV_View *pView, const UT_UTF8String &buddyDBusAddress)
bool isIgnoredBuddy (const UT_UTF8String &buddyName)

Static Public Member Functions

static SugarAccountHandlergetHandler ()
static UT_UTF8String getStaticStorageType ()

Protected Member Functions

bool _send (const Packet *pPacket, const char *dbusAddress)
void _registerEditMethods ()
virtual void _handlePacket (Packet *packet, BuddyPtr buddy)

Private Attributes

DBusConnection * m_pTube
bool m_bIsInSession
std::set< UT_UTF8Stringm_ignoredBuddies
UT_UTF8String m_sSessionId

Static Private Attributes

static SugarAccountHandlerm_pHandler = NULL

Constructor & Destructor Documentation

SugarAccountHandler::SugarAccountHandler (  ) 
SugarAccountHandler::~SugarAccountHandler (  )  [virtual]

References disconnect(), and m_pHandler.


Member Function Documentation

void SugarAccountHandler::_handlePacket ( Packet packet,
BuddyPtr  buddy 
) [protected, virtual]
bool SugarAccountHandler::_send ( const Packet pPacket,
const char *  dbusAddress 
) [protected]
virtual bool SugarAccountHandler::allowsManualBuddies (  )  [inline, virtual]

Implements AccountHandler.

virtual bool SugarAccountHandler::allowsSessionTakeover (  )  [inline, virtual]

Implements AccountHandler.

virtual bool SugarAccountHandler::canDelete (  )  [inline, virtual]

Reimplemented from AccountHandler.

virtual bool SugarAccountHandler::canEditProperties (  )  [inline, virtual]

Reimplemented from AccountHandler.

virtual bool SugarAccountHandler::canManuallyStartSession (  )  [inline, virtual]

Reimplemented from AccountHandler.

ConnectResult SugarAccountHandler::connect (  )  [virtual]

Implements AccountHandler.

References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.

BuddyPtr SugarAccountHandler::constructBuddy ( const std::string &  descriptor,
BuddyPtr  pBuddy 
) [virtual]
BuddyPtr SugarAccountHandler::constructBuddy ( const PropertyMap props  )  [virtual]

Implements AccountHandler.

References UT_DEBUGMSG, and UT_return_val_if_fail.

Packet * SugarAccountHandler::createPacket ( const std::string &  packet,
BuddyPtr  pBuddy 
)
bool SugarAccountHandler::disconnect ( void   )  [virtual]

Implements AccountHandler.

References m_pTube.

Referenced by signal(), and ~SugarAccountHandler().

bool SugarAccountHandler::disjoinBuddy ( FV_View pView,
const UT_UTF8String buddyDBusAddress 
)
virtual void SugarAccountHandler::embedDialogWidgets ( void *   )  [inline, virtual]

Implements AccountHandler.

References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.

void SugarAccountHandler::forceDisconnectBuddy ( BuddyPtr  pBuddy  )  [virtual]

Implements AccountHandler.

References m_ignoredBuddies, and UT_return_if_fail.

SugarBuddyPtr SugarAccountHandler::getBuddy ( const UT_UTF8String dbusAddress  ) 
UT_UTF8String SugarAccountHandler::getDescription (  )  [virtual]

Implements AccountHandler.

UT_UTF8String SugarAccountHandler::getDisplayType (  )  [virtual]

Implements AccountHandler.

SugarAccountHandler * SugarAccountHandler::getHandler (  )  [static]
UT_UTF8String SugarAccountHandler::getStaticStorageType (  )  [static]

Reimplemented from AccountHandler.

Referenced by getStorageType().

virtual UT_UTF8String SugarAccountHandler::getStorageType (  )  [inline, virtual]

Implements AccountHandler.

References getStaticStorageType().

void SugarAccountHandler::handleEvent ( Session pSession  ) 
bool SugarAccountHandler::hasAccess ( const std::vector< std::string > &  vAcl,
BuddyPtr  pBuddy 
) [virtual]

Reimplemented from AccountHandler.

References getBuddy(), UT_DEBUGMSG, and UT_return_val_if_fail.

virtual bool SugarAccountHandler::hasPersistentAccessControl (  )  [inline, virtual]

Implements AccountHandler.

bool SugarAccountHandler::isIgnoredBuddy ( const UT_UTF8String buddyName  )  [inline]

References m_ignoredBuddies.

Referenced by s_dbus_handle_message().

bool SugarAccountHandler::isOnline (  )  [virtual]

Implements AccountHandler.

bool SugarAccountHandler::joinBuddy ( FV_View pView,
const UT_UTF8String buddyDBusAddress 
)
void SugarAccountHandler::loadProperties (  )  [virtual]

Implements AccountHandler.

bool SugarAccountHandler::recognizeBuddyIdentifier ( const std::string &  identifier  )  [virtual]

Implements AccountHandler.

virtual void SugarAccountHandler::removeDialogWidgets ( void *   )  [inline, virtual]

Implements AccountHandler.

References UT_ASSERT_HARMLESS, and UT_NOT_REACHED.

bool SugarAccountHandler::send ( const Packet pPacket,
BuddyPtr  buddy 
) [virtual]
bool SugarAccountHandler::send ( const Packet pPacket  )  [virtual]

Implements AccountHandler.

References _send(), m_pTube, UT_DEBUGMSG, and UT_return_val_if_fail.

Referenced by joinTube().

void SugarAccountHandler::storeProperties (  )  [virtual]

Implements AccountHandler.


Member Data Documentation

Referenced by offerTube(), and signal().

DBusConnection* SugarAccountHandler::m_pTube [private]

The documentation for this class was generated from the following files: