equal
deleted
inserted
replaced
73 bool deleteWidgetPresentation(int widgetId, const QString &key); |
73 bool deleteWidgetPresentation(int widgetId, const QString &key); |
74 |
74 |
75 bool widgetPreferences(int widgetId, QVariantHash &data); |
75 bool widgetPreferences(int widgetId, QVariantHash &data); |
76 bool widgetPreference(int widgetId, const QString &key, QVariant &value); |
76 bool widgetPreference(int widgetId, const QString &key, QVariant &value); |
77 bool setWidgetPreferences(int widgetId, const QVariantHash &data); |
77 bool setWidgetPreferences(int widgetId, const QVariantHash &data); |
78 |
78 |
|
79 void setDataBaseBlocked(bool blocked); |
|
80 bool getDataBaseBlocked(); |
79 public: |
81 public: |
80 static void setInstance(HsDatabase *instance); |
82 static void setInstance(HsDatabase *instance); |
81 static HsDatabase *instance(); |
83 static HsDatabase *instance(); |
82 static HsDatabase *takeInstance(); |
84 static HsDatabase *takeInstance(); |
83 |
85 |
88 private: |
90 private: |
89 QString mConnectionName; |
91 QString mConnectionName; |
90 QString mDatabaseName; |
92 QString mDatabaseName; |
91 |
93 |
92 static QScopedPointer<HsDatabase> mInstance; |
94 static QScopedPointer<HsDatabase> mInstance; |
|
95 bool mBlocked; |
93 }; |
96 }; |
94 |
97 |
95 #endif // HSDATABASE_H |
98 #endif // HSDATABASE_H |