25 #include <tqvaluelist.h>
26 #include <tqstringlist.h>
27 #include <tqptrlist.h>
30 #include <dcopobject.h>
32 #include <sys/types.h>
37 class KMVirtualManager;
38 class KXmlCommandManager;
39 class KMSpecialManager;
45 class TDEPRINT_EXPORT KMFactory :
public TQObject,
public DCOPObject
55 TQStringList detectUris;
57 TQStringList mimeTypes;
58 TQString primaryMimeType;
61 static KMFactory*
self();
63 static void release();
69 KMJobManager* jobManager();
70 KMUiManager* uiManager();
71 KMVirtualManager* virtualManager();
72 KMSpecialManager* specialManager();
73 KXmlCommandManager* commandManager();
74 KPrinterImpl* printerImplementation();
75 TDEConfig* printConfig(
const TQString& group = TQString::null);
76 TQString printSystem();
77 TQValueList<PluginInfo> pluginList();
78 PluginInfo pluginInfo(
const TQString& name);
81 void reload(
const TQString& syst,
bool saveSyst =
true);
82 void registerObject(KPReloadObject*,
bool =
false);
83 void unregisterObject(KPReloadObject*);
88 int standardDialogPages;
93 Settings* settings()
const {
return m_settings; }
95 TQPair<TQString,TQString> requestPassword(
int& seqNbr,
const TQString& user,
const TQString& host =
"localhost",
int port = 0 );
96 void initPassword(
const TQString& user,
const TQString& password,
const TQString& host =
"localhsot",
int port = 0 );
99 ASYNC slot_pluginChanged(pid_t);
100 ASYNC slot_configChanged();
103 void pluginChanged(pid_t);
104 void configChanged();
107 void createManager();
108 void createJobManager();
109 void createUiManager();
110 void createPrinterImpl();
111 void loadFactory(
const TQString& syst = TQString::null);
113 TQString autoDetect();
116 static KMFactory *m_self;
118 KMManager *m_manager;
119 KMJobManager *m_jobmanager;
120 KMUiManager *m_uimanager;
121 KPrinterImpl *m_implementation;
122 KLibFactory *m_factory;
124 TDEConfig *m_printconfig;
125 Settings *m_settings;
126 TQPtrList<KPReloadObject> m_objects;