• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeabc
 

tdeabc

  • TDEABC
  • Agent
Public Member Functions | Friends | List of all members
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.

Definition at line 40 of file agent.h.

Constructor & Destructor Documentation

◆ Agent() [1/3]

Agent::Agent ( )

Consturctor.

Creates an empty object.

Definition at line 27 of file agent.cpp.

◆ Agent() [2/3]

Agent::Agent ( const TQString &  url)

Consturctor.

Parameters
urlA URL that describes the position of the agent file.

Definition at line 32 of file agent.cpp.

◆ Agent() [3/3]

Agent::Agent ( Addressee *  addressee)

Consturctor.

Parameters
addresseeThe addressee object of the agent.

Definition at line 37 of file agent.cpp.

◆ ~Agent()

Agent::~Agent ( )

Destructor.

Definition at line 42 of file agent.cpp.

Member Function Documentation

◆ addressee()

Addressee * Agent::addressee ( ) const

Returns the addressee object of this agent.

Definition at line 112 of file agent.cpp.

◆ asString()

TQString Agent::asString ( ) const

Returns string representation of the agent.

Definition at line 117 of file agent.cpp.

◆ 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.

Definition at line 102 of file agent.cpp.

◆ operator!=()

bool Agent::operator!= ( const Agent &  a) const

Definition at line 66 of file agent.cpp.

◆ operator=()

Agent & Agent::operator= ( const Agent &  addr)

Definition at line 71 of file agent.cpp.

◆ operator==()

bool Agent::operator== ( const Agent &  a) const

Definition at line 48 of file agent.cpp.

◆ 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
addresseeThe addressee object of the agent.

Definition at line 96 of file agent.cpp.

◆ 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
urlThe location URL of the agent file.

Definition at line 90 of file agent.cpp.

◆ url()

TQString Agent::url ( ) const

Returns the location URL of this agent.

Definition at line 107 of file agent.cpp.


The documentation for this class was generated from the following files:
  • agent.h
  • agent.cpp

tdeabc

Skip menu "tdeabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeabc

Skip menu "tdeabc"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeabc by doxygen 1.9.4
This website is maintained by Timothy Pearson.