LibPkg
Public Member Functions | Protected Member Functions | List of all members
pkg::look_at_options Class Reference

Class to configure the look at options file in the Desktop file. More...

#include <boot_options_file.h>

Inheritance diagram for pkg::look_at_options:
pkg::boot_options_file

Public Member Functions

 look_at_options ()
 Constructor sets up base class with the correct values for the look at options. More...
 
virtual ~look_at_options ()
 
- Public Member Functions inherited from pkg::boot_options_file
 boot_options_file (const char *file_name, const char *section_prefix, const char *section_version, const char *section_suffix, const char *command, const char *command2=0)
 Construct boot_options_file object by setting parameters for the options file it will edit. More...
 
virtual ~boot_options_file ()
 
void rollback ()
 Discard any changes and reload the file. More...
 
void commit ()
 Commit any changes to the file. More...
 
bool contains (const std::string &app) const
 Check if application is contained in the look ups. More...
 
bool add (const std::string &app)
 Add application to up section. More...
 
bool remove (const std::string &app)
 Remove application from section. More...
 
bool replace (const std::string &was_app, const std::string &app)
 Replace an application. More...
 
const std::string & read_pathname () const
 The path name to the location of the PreDesk file that contains the look at declarations for reading. More...
 
const std::string & write_pathname () const
 The path name to the location of the PreDesk file that any changes to the look at declarations will be written to. More...
 
void use_test_pathname (const std::string &pathname)
 Change the path name for read or write. More...
 
bool has_section () const
 See if file has the section defined. More...
 
bool modified () const
 
bool contains_raw (const std::string &app) const
 Check if exact name is contained in the look ups. More...
 
void dump_apps () const
 Dump apps array to cout - debugging helper. More...
 

Protected Member Functions

virtual char * find_insert_section ()
 
- Protected Member Functions inherited from pkg::boot_options_file
char * find_section (const char *name, const char *suffix)
 Find section in the file. More...
 
void parse_section ()
 Parse section we are interested into C++ structures. More...
 
bool parse_word (char *&pos, std::string &word) const
 Parse a single word from the given location. More...
 
char * find_section_end (char *section) const
 Find the end of the section. More...
 
char * next_line (char *line) const
 Return adress of start of next line. More...
 
std::string name_in_section (const std::string &app) const
 Generate the name used in the file. More...
 

Detailed Description

Class to configure the look at options file in the Desktop file.

Constructor & Destructor Documentation

◆ look_at_options()

pkg::look_at_options::look_at_options ( )
inline

Constructor sets up base class with the correct values for the look at options.

◆ ~look_at_options()

virtual pkg::look_at_options::~look_at_options ( )
inlinevirtual

Member Function Documentation

◆ find_insert_section()

virtual char* pkg::look_at_options::find_insert_section ( )
inlineprotectedvirtual

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

Reference Manual LibPkg Version 0.9.0 (4 Sep 2020)