1 #ifndef __DIALOGFACTORY_H__
2 #define __DIALOGFACTORY_H__
4 #include "dialogfactoryadapter.h"
6 #define DIALOGFACTORY DialogFactory::instance()->getFactoryObject()
8 class DialogFactoryInterface;
11 * Interface for objects that can create and show dialogs.
19 virtual ~DialogFactory();
21 static DialogFactory * instance();
23 void setFactoryObject(DialogFactoryInterface * fo);
24 DialogFactoryInterface * getFactoryObject();
25 void commandMessage(const QString & m);
28 DialogFactoryInterface * factoryObject;
29 DialogFactoryAdapter factoryAdapter;
30 static DialogFactory * uniqueInstance;
33 #endif // __DIALOGFACTORY_H__