TDEABC::Agent Class Reference
#include <agent.h>
Public Member Functions | |
Agent () | |
Agent (const TQString &url) | |
Agent (Addressee *addressee) | |
~Agent () | |
bool | operator== (const Agent &) const |
bool | operator!= (const Agent &) const |
Agent & | operator= (const Agent &) |
void | setUrl (const TQString &url) |
void | setAddressee (Addressee *addressee) |
bool | isIntern () const |
TQString | url () const |
Addressee * | addressee () const |
TQString | asString () const |
Friends | |
KABC_EXPORT TQDataStream & | operator<< (TQDataStream &, const Agent &) |
KABC_EXPORT TQDataStream & | operator>> (TQDataStream &, Agent &) |
Detailed Description
Important!!!
At the moment the vcard format does not support saving and loading this entity.
Constructor & Destructor Documentation
◆ Agent() [1/3]
◆ Agent() [2/3]
Agent::Agent | ( | const TQString & | url | ) |
◆ Agent() [3/3]
Agent::Agent | ( | Addressee * | addressee | ) |
◆ ~Agent()
Member Function Documentation
◆ addressee()
Addressee * Agent::addressee | ( | ) | const |
◆ asString()
TQString Agent::asString | ( | ) | const |
◆ isIntern()
bool Agent::isIntern | ( | ) | const |
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.
◆ setAddressee()
void 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.
◆ setUrl()
void Agent::setUrl | ( | const TQString & | 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.
◆ url()
TQString Agent::url | ( | ) | const |
The documentation for this class was generated from the following files: