X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=www%2Fdoxygen%2FclassTpSessionAccount.html;fp=www%2Fdoxygen%2FclassTpSessionAccount.html;h=7cc10acf49534855ade3f3fab362ee34e79c2d0d;hb=39c01267eba450aed214c0b91fda0d9c45245a57;hp=0000000000000000000000000000000000000000;hpb=fa60d89533e6cc5cfdda4a7fea370ab86cbe6faa;p=tpsession diff --git a/www/doxygen/classTpSessionAccount.html b/www/doxygen/classTpSessionAccount.html new file mode 100644 index 0000000..7cc10ac --- /dev/null +++ b/www/doxygen/classTpSessionAccount.html @@ -0,0 +1,548 @@ + + + +
++ | + +Home · + +All Classes · + +All Namespaces · + +Modules · + +Functions · + +Files + | +
#include <tpsessionaccount.h>
++ +
TpSessionAccount | +( | +Tp::AccountManagerPtr | +am, | +|
+ | + | const QString & | +objectPath | + |
+ | ) | ++ |
+Construct a new TpSessionAccount object. This constructor is called by TpSession class when new account is created or fetched from account manager. It is not inended to be used stand alone
+
am | Telepathy-Qt4 account manager for this account | |
objectPath | Dbus object path tonew account |
+
void makeContactFromAddress | +( | +QString | +address | +) | ++ |
+Creates new contact with given address. This function is Acynchronous, it sends request to contact manager for contact creation,
+
address | Contact address/id, as example email address, telephone number etc. |
void sendMessageToAddress | +( | +QString | +address, | +|
+ | + | QString | +message | + |
+ | ) | ++ |
+Send message to given address. This function is compled Acynchronous function that may produce multiple state transitions beforecomletion. If there is already existing TpSessionChannel for this contact, it simply queues message for sending and no forther transitions are needed If there are no hannel, it first check is there contact for this address, if is, it requests new channel to be created for ths channel and message is left waiting untill channel is created. If there is no contact, it sends request fr contact creation and when contact is created state machine proceeds to channel creation.
+MessageSent() signal is emitted when completed
+
address | Contact address/id, as example email address, telephone number etc. | |
message | Message string |
Tp::ContactPtr getContactFromAddress | +( | +QString | +id | +) | ++ |
+Fetch Tp::ContactPtr for contact with given address. Contact is searched among contacts returned by contact manager for ths account. All connecions managers does not return contacts, as example Ring telephony contact manager does not. Gabble for Googletalk or Spirit for Skype does return contacts-
+
id | Contact address/id, as example email address, telephone number etc. Only exact matches |
void addOutgoingChannel | +( | +const Tp::ContactPtr & | +contact | +) | ++ |
+ +
void addOutgoingChannel | +( | +QString | +address | +) | ++ |
+ +
TpSessionChannel * getChannelFromPeerAddress | +( | +QString | +id | +) | ++ |
+Fetch TpSessionChannel for with given address. Contact is searched among active channels for this account.
+
id | Contact address/id, as example email address, telephone number etc. Only exact matches |
void accountReady | +( | +TpSessionAccount * | +_t1 | +) | + [signal] |
+
+Emitted when the account becomes ready
+
TpSessionAccount | pointer to account become ready |
void channelReady | +( | +TpSessionAccount * | +_t1 | +) | + [signal] |
+
void messageReceived | +( | +const Tp::ReceivedMessage & | +_t1, | +|
+ | + | TpSessionAccount * | +_t2 | + |
+ | ) | + [signal] |
+
+Emitted when any of Account Managers recived message
+
Tp::ReceivedMessage | Message received | |
TpSessionAccount | pointer to account received message |
void messageSent | +( | +const Tp::Message & | +_t1, | +|
+ | + | TpSessionAccount * | +_t2 | + |
+ | ) | + [signal] |
+
+ +
void newChannel | +( | +TpSessionAccount * | +_t1, | +|
+ | + | QString | +_t2, | +|
+ | + | QString | +_t3, | +|
+ | + | const Tp::ChannelDetails & | +_t4 | + |
+ | ) | + [signal] |
+
+ +
+
bool ready | +
+ +
QString reqContact | +
+ +
QString reqMessage | +
+ +
Tp::AccountPtr mAcc | +
+ +
Tp::Account* acc | +
+ +
Tp::ConnectionPtr contactsConn | +
+ +
QSet<Tp::ContactPtr> myContacts | +
+ +
QSet<TpSessionChannel *> myChannels | +
+ +
+
Copyright © 2010 Nokia Corporation | +TpSession |
+