gloox 1.0
Public Member Functions

Disco::Identity Class Reference

An abstraction of a Disco identity (Service Discovery, XEP-0030). More...

#include <disco.h>

List of all members.

Public Member Functions

 Identity (const std::string &category, const std::string &type, const std::string &name)
 Identity (const Identity &id)
 ~Identity ()
const std::string & category () const
const std::string & type () const
const std::string & name () const
Tagtag () const

Detailed Description

An abstraction of a Disco identity (Service Discovery, XEP-0030).

Author:
Jakob Schroeter <js@camaya.net>
Since:
1.0

Definition at line 196 of file disco.h.


Constructor & Destructor Documentation

build buildd gloox src disco cpp Identity ( const std::string &  category,
const std::string &  type,
const std::string &  name 
)

Constructs a Disco Identity from a category, type and name. See http://www.xmpp.org/registrar/disco-categories.html for more info.

Parameters:
categoryThe identity's category.
typeThe identity's type.
nameThe identity's name.

Definition at line 29 of file disco.cpp.

Identity ( const Identity id)

Copy Contructor.

Parameters:
idAn Identity to create a new Identity object from.

Definition at line 46 of file disco.cpp.

~Identity ( )

Destructor.

Definition at line 51 of file disco.cpp.


Member Function Documentation

const std::string& category ( ) const [inline]

Returns the identity's category.

Returns:
The identity's category.

Definition at line 228 of file disco.h.

const std::string& name ( ) const [inline]

Returns the identity's name.

Returns:
The identity's name.

Definition at line 240 of file disco.h.

Tag * tag ( ) const

Creates and returns a Tag representation of this identity.

Returns:
A Tag, or 0.

Definition at line 55 of file disco.cpp.

const std::string& type ( ) const [inline]

Returns the identity's type.

Returns:
The identity's type.

Definition at line 234 of file disco.h.


The documentation for this class was generated from the following files: