cUPnPConfig Class Reference

#include <config.h>

Collaboration diagram for cUPnPConfig:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool parseSetup (const char *Name, const char *Value)
bool processArgs (int argc, char *argv[])

Static Public Member Functions

static cUPnPConfigget ()

Public Attributes

char * mInterface
 the network interface, which the server is bound to
char * mAddress
 the IP address which is used by the server
int mPort
 the port which the server is listening on
int mEnable
 indicates, if the server is enabled or not
int mAutoSetup
 indicates, if the settings are automatically detected


Detailed Description

The configuration settings

This holds the configurations for the server. It holds information about the network settings as well as some status flags.


Member Function Documentation

cUPnPConfig * cUPnPConfig::get (  )  [static]

Get the configuration

This returns the instance of the current configuration settings.

Returns:
the configuration object

bool cUPnPConfig::parseSetup ( const char *  Name,
const char *  Value 
)

Parse setup variable

This parses the setup variable with the according value. The value is a string representation and must be converted into the according data type.

Returns:
returns
  • true, if parsing was successful
  • false, otherwise
Parameters:
Name the name of the variable
Value the according value of the variable

bool cUPnPConfig::processArgs ( int  argc,
char *  argv[] 
)

Processes the commandline arguments

This processes the commandline arguments which the user specified at the start of the plugin.

Returns:
returns
  • true, if processing was successful
  • false, otherwise
Parameters:
argc the number of arguments in the list
argv the arguments as a char array


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

Generated on Sun Nov 8 15:44:09 2009 for UPnP/DLNA plugin for VDR by  doxygen 1.5.8