Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PMYouServer Class Reference

#include <PMYouServers.h>

List of all members.

Public Types

enum  Type {
  Default, Custom, Local, Remote,
  Slp, Unknown
}

Public Member Functions

 PMYouServer ()
 PMYouServer (const std::string &, Type type=Unknown)
 PMYouServer (const Url &url, const std::string &name, const std::string &directory, Type type)
void setUrl (const Url &url)
void setUrl (const std::string &url)
Url url () const
void setUsernamePassword (const std::string &username, const std::string &password)
void setName (const std::string &name)
std::string name () const
void setDirectory (const std::string &dir)
std::string directory () const
void setType (Type type)
Type type () const
std::string typeAsString () const
bool operator== (const PMYouServer &server) const
bool fromString (const std::string &)
std::string toString () const

Static Public Member Functions

std::string typeToString (Type)
Type typeFromString (std::string)

Private Attributes

Url _url
std::string _name
std::string _directory
Type _type


Detailed Description

This class provides information about a YOU server.


Member Enumeration Documentation

enum PMYouServer::Type
 

Type of server. This depends on how the URL to the server was provided:

Custom Put in by the user Local From /etc/youservers Remote From URL provided by product Slp Detected via the SLP protocol Unknown Unknown

Enumeration values:
Default 
Custom 
Local 
Remote 
Slp 
Unknown 


Constructor & Destructor Documentation

PMYouServer::PMYouServer  ) 
 

PMYouServer::PMYouServer const std::string &  ,
Type  type = Unknown
 

PMYouServer::PMYouServer const Url url,
const std::string &  name,
const std::string &  directory,
Type  type
[inline]
 


Member Function Documentation

std::string PMYouServer::directory  )  const [inline]
 

bool PMYouServer::fromString const std::string &   ) 
 

std::string PMYouServer::name  )  const [inline]
 

bool PMYouServer::operator== const PMYouServer server  )  const
 

void PMYouServer::setDirectory const std::string &  dir  )  [inline]
 

void PMYouServer::setName const std::string &  name  )  [inline]
 

void PMYouServer::setType Type  type  )  [inline]
 

void PMYouServer::setUrl const std::string &  url  )  [inline]
 

void PMYouServer::setUrl const Url url  )  [inline]
 

void PMYouServer::setUsernamePassword const std::string &  username,
const std::string &  password
 

std::string PMYouServer::toString  )  const
 

Type PMYouServer::type  )  const [inline]
 

string PMYouServer::typeAsString  )  const
 

PMYouServer::Type PMYouServer::typeFromString std::string   )  [static]
 

string PMYouServer::typeToString Type   )  [static]
 

Url PMYouServer::url  )  const [inline]
 


Member Data Documentation

std::string PMYouServer::_directory [private]
 

std::string PMYouServer::_name [private]
 

Type PMYouServer::_type [private]
 

Url PMYouServer::_url [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:33 2007 for yast2-packagemanager by doxygen 1.3.6