ClassesConf Class Reference

#include <ClassesConf.h>

List of all members.

Public Member Functions

 ClassesConf ()
 ~ClassesConf ()
void dump () const
YCPValue Read ()
YCPBoolean Write (const YCPPath &path, const YCPValue &value, const YCPValue &arg=YCPNull())

Private Member Functions

bool parseFile (const char *fn)
bool getClasses ()
bool completeEntries ()
void Clear ()
bool modifyClass (YCPMap clas)
bool readSettings (const char *fn)
list< ClassEntry >::iterator getClassEntry (const string name)
list< ClassEntry >::iterator findClass (const string name)

Private Attributes

list< ClassEntryClasses


Constructor & Destructor Documentation

ClassesConf::ClassesConf  )  [inline]
 

Default Constructor.

ClassesConf::~ClassesConf  )  [inline]
 

Destructor.


Member Function Documentation

void ClassesConf::Clear  )  [inline, private]
 

Erase all settings.

bool ClassesConf::completeEntries  )  [private]
 

Not all of the settings can be read from file classes.conf. This function reads additional settings via cups library calls.

Returns:
True if settings was read successfully.

void ClassesConf::dump  )  const
 

Dump all classes.

list< ClassEntry >::iterator ClassesConf::findClass const string  name  )  [private]
 

Returns class entry by class name. If the class does not have an entry, returns Classes.end().

Parameters:
name Class name.
Returns:
Iterator that points to class entry for class or Class.end()

list< ClassEntry >::iterator ClassesConf::getClassEntry const string  name  )  [private]
 

Returns class entry by class name. If the class does not have an entry, it is created.

Parameters:
name Class name.
Returns:
Iterator that points to class entry for class.

bool ClassesConf::getClasses  )  [private]
 

New version of get-classes that works over ipp...

bool ClassesConf::modifyClass YCPMap  clas  )  [private]
 

Update class.

bool ClassesConf::parseFile const char *  fn  )  [private]
 

Parse file classes.conf.

Parameters:
fn File to parse.
Returns:
if the operation was successful.

YCPValue ClassesConf::Read  ) 
 

Convert ClassesConf to YCPValue

bool ClassesConf::readSettings const char *  fn  )  [private]
 

Read classes.conf file. Build list of classes (Classes).

Parameters:
fn filename of the classes.conf.
Returns:
True if file was read successfully.

YCPBoolean ClassesConf::Write const YCPPath path,
const YCPValue value,
const YCPValue arg = YCPNull()
 

Write classes...


Member Data Documentation

list<ClassEntry> ClassesConf::Classes [private]
 

List of ClassEntries.


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:28:52 2006 for yast2-printer by  doxygen 1.4.6