roviz  0.7
Code Documentation of roviz
livedoc.h
1 #ifndef LIVEDOC_H
2 #define LIVEDOC_H
3 
4 #include <QMutex>
5 #include <QObject>
6 #include <QUrl>
7 
8 #include "appcore.h"
9 #include "helper/singleton.h"
10 
12 class Livedoc_Widget;
13 class ITEMFRAMEWORK_EXPORT Livedoc : public QObject, public Singleton<Livedoc>
14 {
15  //------------------Singleton Stuff---------------------------
16  Q_OBJECT
17  Q_INTERFACES(AbstractSingleton)
18 
19  Q_CLASSINFO("guiModule", "true")
20  Q_CLASSINFO("dependsOn", "GuiManager")
21  Q_CLASSINFO("dependsOn", "PluginManager")
22 
23 public:
24  Q_INVOKABLE Livedoc();
25  ~Livedoc();
26 
27 protected:
28  bool postInit();
29  bool preDestroy();
30  //------------------End Singleton Stuff---------------------------
31 
32 public:
33  void add_provider(Interface_Livedoc_Provider* p);
34  void remove_provider(Interface_Livedoc_Provider* p);
35  const QList<Interface_Livedoc_Provider*>& get_providers() const;
36  QString get_doc(QUrl doc);
37 
38 public slots:
39  void navigate(QUrl doc);
40  void show();
41  void hide();
42  void toggle(bool visible);
43 private slots:
44  void widget_closed();
45 
46 private:
47  Livedoc_Widget* browser;
48  QList<Interface_Livedoc_Provider*> lis_providers;
49 
50 };
51 
52 #endif // LIVEDOC_H
Definition: livedoc.h:13
virtual bool postInit()=0
postInit will be called after all components and singletons have been constructed/initialized ...
The AbstractSingleton class defines functions that every singleton must implement Every Singleton mus...
Definition: singleton.h:12
Definition: livedoc_widget.h:12
Definition: interface_livedoc_provider.h:11
virtual bool preDestroy()=0
preDestroy will be called before any of the components and singletons will be destructed/deinitailize...
The Singleton Template figures as baseclass for all Singletons. It provides a instance() functions wh...
Definition: singleton.h:54