• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdenetwork
  • Sitemap
  • Contact Us
 

kopete/protocols/messenger/libpapillon

Papillon::SetPersonalInformationTask

Papillon::SetPersonalInformationTask Class Reference

#include <Papillon/Tasks/SetPersonalInformationTask>

Inheritance diagram for Papillon::SetPersonalInformationTask:

Inheritance graph
[legend]

List of all members.


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);

Author:
Michaƫl Larouche <larouche@kde.org>

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

d-tor

Definition at line 53 of file setpersonalinformationtask.cpp.


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:
  • setpersonalinformationtask.h
  • setpersonalinformationtask.cpp

kopete/protocols/messenger/libpapillon

Skip menu "kopete/protocols/messenger/libpapillon"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal