20 #ifndef KMVIRTUALMANAGER_H
21 #define KMVIRTUALMANAGER_H
24 #include <tqptrlist.h>
25 #include <tqdatetime.h>
27 #include <tdelibs_export.h>
29 #include "kpreloadobject.h"
35 class TDEPRINT_EXPORT KMVirtualManager :
public TQObject,
public KPReloadObject
38 KMVirtualManager(KMManager *parent = 0,
const char *name = 0);
43 void virtualList(TQPtrList<KMPrinter>& list,
const TQString& prname);
46 KMPrinter* findPrinter(
const TQString& name);
47 KMPrinter* findInstance(KMPrinter *p,
const TQString& name);
48 void setDefault(KMPrinter *p,
bool save =
true);
49 TQString defaultPrinterName();
50 bool isDefault(KMPrinter *p,
const TQString& name);
51 bool testInstance(KMPrinter *p);
53 void create(KMPrinter *p,
const TQString& name);
54 void remove(KMPrinter *p,
const TQString& name);
55 void copy(KMPrinter *p,
const TQString& src,
const TQString& name);
56 void setAsDefault(KMPrinter *p,
const TQString& name, TQWidget *parent = NULL);
59 void loadFile(
const TQString& filename);
60 void saveFile(
const TQString& filename);
61 void addPrinter(KMPrinter *p);
62 void checkPrinter(KMPrinter*);
68 TQDateTime m_checktime;
69 TQString m_defaultprinter;
72 inline void KMVirtualManager::reset()
73 { m_checktime = TQDateTime(); }