Lunchbox  1.10.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
lunchbox::Servus::Result Class Reference

The ZeroConf operation result code. More...

#include <servus.h>

+ Inheritance diagram for lunchbox::Servus::Result:
+ Collaboration diagram for lunchbox::Servus::Result:

Public Member Functions

 Result (const int32_t code)
 
virtual ~Result ()
 Destruct the result. More...
 
LUNCHBOX_API std::string getString () const override
 
- Public Member Functions inherited from lunchbox::Result
 Result (const int32_t code)
 Construct a new result. More...
 
 operator bool_t () const
 
bool operator! () const
 
bool operator== (const int32_t code) const
 
bool operator!= (const int32_t code) const
 
int32_t getCode () const
 

Static Public Attributes

static const int32_t PENDING = -1
 operation did not complete. More...
 
static const int32_t NOT_SUPPORTED = -2
 Lunchbox compiled without ZeroConf support. More...
 
static const int32_t POLL_ERROR = -3
 Error during polling for event. More...
 
- Static Public Attributes inherited from lunchbox::Result
static const int32_t SUCCESS = 0
 

Additional Inherited Members

- Protected Attributes inherited from lunchbox::Result
int32_t code_
 

Detailed Description

The ZeroConf operation result code.

The result code is either one of kDNSServiceErr_ or one of static constants defined by this class

Definition at line 59 of file servus.h.

Constructor & Destructor Documentation

virtual lunchbox::Servus::Result::~Result ( )
inlinevirtual

Destruct the result.

Version
1.9.1

Reimplemented from lunchbox::Result.

Definition at line 63 of file servus.h.

Member Function Documentation

LUNCHBOX_API std::string lunchbox::Servus::Result::getString ( ) const
overridevirtual
Returns
the result string.
Version
1.9.1

Reimplemented from lunchbox::Result.

Member Data Documentation

const int32_t lunchbox::Servus::Result::NOT_SUPPORTED = -2
static

Lunchbox compiled without ZeroConf support.

Definition at line 69 of file servus.h.

const int32_t lunchbox::Servus::Result::PENDING = -1
static

operation did not complete.

Definition at line 67 of file servus.h.

const int32_t lunchbox::Servus::Result::POLL_ERROR = -3
static

Error during polling for event.

Definition at line 71 of file servus.h.


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