KABC::Agent Class Reference
#include <agent.h>
Detailed Description
Important!!!At the moment the vcard format does not support saving and loading this entity.
Definition at line 40 of file agent.h.
Public Member Functions | |
| Agent () | |
| Agent (const QString &url) | |
| Agent (Addressee *addressee) | |
| ~Agent () | |
| bool | operator== (const Agent &) const |
| bool | operator!= (const Agent &) const |
| Agent & | operator= (const Agent &) |
| void | setUrl (const QString &url) |
| void | setAddressee (Addressee *addressee) |
| bool | isIntern () const |
| QString | url () const |
| Addressee * | addressee () const |
| QString | asString () const |
Friends | |
| KABC_EXPORT QDataStream & | operator<< (QDataStream &, const Agent &) |
| KABC_EXPORT QDataStream & | operator>> (QDataStream &, Agent &) |
Constructor & Destructor Documentation
| Agent::Agent | ( | const QString & | url | ) |
| Agent::Agent | ( | Addressee * | addressee | ) |
Member Function Documentation
| void 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.
| 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.
| 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.
| QString Agent::url | ( | ) | const |
| Addressee * Agent::addressee | ( | ) | const |
| QString Agent::asString | ( | ) | const |
The documentation for this class was generated from the following files:

