|
Public Types |
| typedef string | VendorKey |
| typedef string | ModelKey |
| typedef string | DriverFile |
| typedef map< DriverFile, DriverInfo > | Drivers |
| typedef map< ModelKey, ModelInfo > | Models |
| typedef map< VendorKey, VendorInfo > | Vendors |
| typedef map< string, PpdFileInfo > | PpdFiles |
typedef map< VendorKey, set<
string > > | ModelLabels |
| typedef set< string > | VendorLabels |
Public Member Functions |
| | PPD (const char *ppddir=PPD_DIR, const char *ppddb=PPD_DB) |
| | ~PPD () |
| bool | createdb () |
| void * | createdbThread (const char *filename) |
| int | creationStatus () |
| bool | changed (int *count) |
| string | getVendorId (string vendor) |
| string | getModelId (string vendor, string model) |
| string | removeVendorFromModel (string vendor, string model) |
| bool | fileinfo (const char *file, PPDInfo *info) |
| bool | setCheckMethod (YCPSymbol method) |
| YCPList | sortItems (const YCPMap &items) |
Static Public Member Functions |
| static void * | startCreatedbThread (void *instance) |
Protected Member Functions |
| string | strupper (const string s) |
| string | killchars (const string s, const string chr) |
| string | killspaces (const string s) |
| string | killbraces (const string s) |
| string | addbrace (const string s) |
| string | first (const string s, const string sep=" -/") |
| string | clean (const char *s) |
| string | filternotchars (const string s, const string chr) |
| string | regexpsub (const string input, const string pattern, const string result) |
| bool | validateModel (const string vendor, const string printer) |
Private Types |
| typedef map< string, string > | VendorsMap |
typedef map< string, vector<
pair< string, string > > > | ModelsMap |
Private Member Functions |
| bool | mtimes (const char *dirname, time_t mtime, int *count) |
| int | countFiles (const char *dirname) |
| bool | process_dir (const char *dirname) |
| bool | process_file (const char *filename, PPDInfo *newinfo=NULL) |
| void | preprocess (PPDInfo info, PPDInfo *newinfo) |
| void | addAdditionalInfo () |
| void | debugdb () const |
| bool | loadPrebuiltDatabase () |
| bool | createFileList (const char *dirname, time_t mtime) |
| bool | cleanupLists () |
| bool | processNewFiles () |
| bool | cleanupEmptyEntries () |
| string | fileChecksum (const string &filename) |
| off_t | fileSize (const string &filename) |
| string | updateLabel (const string &label) |
Private Attributes |
| Vendors | db |
| PpdFiles | ppdfiles |
| ModelLabels | modellabels |
| VendorLabels | vendorlabels |
| string | datadir |
| string | var_datadir |
| char | ppd_dir [MAX] |
| char | ppd_db [MAX] |
| time_t | mtime |
| VendorsMap | vendors_map |
| ModelsMap | models_map |
| volatile int | creation_status |
| volatile int | total_files |
| volatile int | done_files |
| bool | fast_check |
Friends |
| class | PPDfile |
Classes |
| class | DriverInfo |
| class | ModelInfo |
| class | PpdFileInfo |
| class | PPDInfo |
| class | VendorInfo |