kopete/protocols/messenger/libpapillon
Papillon::SetPersonalInformationTask Class Reference
#include <Papillon/Tasks/SetPersonalInformationTask>

Detailed Description
Set personal information for myself contact on server.Personal information such as nickname(my friendly name), home phone number, work phone number, mobile phone number, authorization to contact on MSN Mobile, and if a mobile device is enabled.
Note that you can only set/change one information at time.
Usage:
SetPersonalInformationTask *setInfo = new SetPersonalInformationTask( connection()->rootTask() ); setInfo->setPersonalInformation( Papillon::ClientInfo::Nickname, QString("Libpapillon Test Buddy") ); setInfo->go(Task::AutoDelete);
Definition at line 43 of file setpersonalinformationtask.h.
Public Member Functions | |
| SetPersonalInformationTask (Papillon::Task *parent) | |
| ~SetPersonalInformationTask () | |
| void | setPersonalInformation (Papillon::ClientInfo::PersonalInformation type, const QString &value) |
| virtual bool | take (Papillon::NetworkMessage *networkMessage) |
Protected Member Functions | |
| virtual void | onGo () |
Constructor & Destructor Documentation
| Papillon::SetPersonalInformationTask::SetPersonalInformationTask | ( | Papillon::Task * | parent | ) | [explicit] |
Create a new SetPersonalInformationTask task.
- Parameters:
-
parent Root Task
Definition at line 49 of file setpersonalinformationtask.cpp.
| Papillon::SetPersonalInformationTask::~SetPersonalInformationTask | ( | ) |
Member Function Documentation
| void Papillon::SetPersonalInformationTask::setPersonalInformation | ( | Papillon::ClientInfo::PersonalInformation | type, | |
| const QString & | value | |||
| ) |
Set the personal information to be updated on server.
- Parameters:
-
type The type of the personal information it need to update on server. value New value for the given personal information. Set an empty string to reset the value.
Definition at line 69 of file setpersonalinformationtask.cpp.
| bool Papillon::SetPersonalInformationTask::take | ( | Papillon::NetworkMessage * | networkMessage | ) | [virtual] |
Check for task acknowledge if the task executed successfully.
- Parameters:
-
networkMessage the NetworkMessage
- Returns:
- true if this is the task acknowledge
Reimplemented from Papillon::Task.
Definition at line 58 of file setpersonalinformationtask.cpp.
| void Papillon::SetPersonalInformationTask::onGo | ( | ) | [protected, virtual] |
Send the command to set personal information on server.
Reimplemented from Papillon::Task.
Definition at line 75 of file setpersonalinformationtask.cpp.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference