viewmanager.h
00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 #ifndef BLOKKAL_UIVIEWMANAGER_H
00021 #define BLOKKAL_UIVIEWMANAGER_H
00022 
00023 #include <QtCore/QObject>
00024 
00025 #include "../blokkal_export.h"
00026 
00027 namespace Blokkal {
00028 class Entry;
00029 
00030 namespace Ui {
00031 class View;
00032 class ViewManagerPrivate;
00033 
00034 class BLOKKAL_EXPORT ViewManager : public QObject {
00035 friend class ViewManagerPrivate;
00036 Q_OBJECT
00037 public:
00041         static Blokkal::Ui::ViewManager * self( void );
00042 
00046         static Blokkal::Ui::View * view( Blokkal::Entry * entry );
00047 
00051         static bool hasView( Blokkal::Entry * entry );
00052 
00053 Q_SIGNALS:
00057         void viewCreated( Blokkal::Entry * entry, Blokkal::Ui::View * view );
00058 
00059 private Q_SLOTS:
00060         void slotViewDestroyed( void );
00061         void slotEntryDestroyed( Blokkal::Entry * entry );
00062 
00063 private:
00064         ViewManager( void );
00065         ~ViewManager( void );
00066 };
00067 
00068 }
00069 
00070 }
00071 
00072 #endif