Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KABC::Agent Class Reference

#include <agent.h>

List of all members.

Public Methods

 Agent ()
 Agent (const QString &url)
 Agent (Addressee *addressee)
 ~Agent ()
void setUrl (const QString &url)
void setAddressee (Addressee *addressee)
bool isIntern () const
QString url () const
Addressee * addressee () const
QString asString () const


Detailed Description

Important!!!

At the moment the vcard format does not support saving and loading this entity.

Definition at line 34 of file agent.h.


Constructor & Destructor Documentation

KABC::Agent::Agent (    ) 
 

Consturctor. Creates an empty object.

KABC::Agent::Agent (  const QString &    url ) 
 

Consturctor.

Parameters:
url  A URL that describes the position of the agent file.

KABC::Agent::Agent (  Addressee *    addressee ) 
 

Consturctor.

Parameters:
addressee  The addressee object of the agent.

KABC::Agent::~Agent (    ) 
 

Destructor.


Member Function Documentation

Addressee* KABC::Agent::addressee (    ) 
 

Returns the addressee object of this agent.

QString KABC::Agent::asString (    ) 
 

Returns string representation of the agent.

bool KABC::Agent::isIntern (    ) 
 

Returns whether the agent is described by a URL (extern) or by a addressee (intern). When this method returns 'true' you can use addressee() to get a Addressee object. Otherwise you can request the URL of this agent by url() and load the data from that location.

void KABC::Agent::setAddressee (  Addressee *    addressee ) 
 

Sets the addressee of the agent. When using this function, isIntern() will return 'true' until you use setUrl().

Parameters:
addressee  The addressee object of the agent.

void KABC::Agent::setUrl (  const QString &    url ) 
 

Sets a URL for the location of the agent file. When using this function, isIntern() will return 'false' until you use setAddressee().

Parameters:
url  The location URL of the agent file.

QString KABC::Agent::url (    ) 
 

Returns the location URL of this agent.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:31 2003 for kdelibs by doxygen1.2.18