1 #ifndef RS_DIALOGFACTORY_H
2 #define RS_DIALOGFACTORY_H
4 #include "rs_dialogfactoryadapter.h"
6 #define RS_DIALOGFACTORY RS_DialogFactory::instance()->getFactoryObject()
8 class RS_DialogFactoryInterface;
11 * Interface for objects that can create and show dialogs.
13 class RS_DialogFactory
19 virtual ~RS_DialogFactory() {}
21 static RS_DialogFactory * instance();
23 void setFactoryObject(RS_DialogFactoryInterface * fo);
24 RS_DialogFactoryInterface * getFactoryObject();
26 void commandMessage(const QString & m);
29 RS_DialogFactoryInterface * factoryObject;
30 RS_DialogFactoryAdapter factoryAdapter;
31 static RS_DialogFactory * uniqueInstance;