homescreenapp/hsdomainmodel/inc/hsdatabase.h
changeset 55 03646e8da489
parent 51 4785f57bf3d4
child 60 30f14686fb04
child 62 341166945d65
equal deleted inserted replaced
51:4785f57bf3d4 55:03646e8da489
    73     bool deleteWidget(int id);
    73     bool deleteWidget(int id);
    74     bool deleteWidgets(const QString &uri);
    74     bool deleteWidgets(const QString &uri);
    75 
    75 
    76     bool widgetPresentation(HsWidgetPresentationData &data);
    76     bool widgetPresentation(HsWidgetPresentationData &data);
    77     bool setWidgetPresentation(const HsWidgetPresentationData &data);
    77     bool setWidgetPresentation(const HsWidgetPresentationData &data);
    78     bool deleteWidgetPresentation(int widgetId, const QString &key);
    78     bool deleteWidgetPresentation(int widgetId, Qt::Orientation orientation);
    79 
    79 
    80     bool widgetPreferences(int widgetId, QVariantHash &data);
    80     bool widgetPreferences(int widgetId, QVariantHash &data);
    81     bool widgetPreference(int widgetId, const QString &key, QVariant &value);
    81     bool widgetPreference(int widgetId, const QString &key, QVariant &value);
    82     bool setWidgetPreferences(int widgetId, const QVariantHash &data);
    82     bool setWidgetPreferences(int widgetId, const QVariantHash &data);
    83 
    83 
    96 
    96 
    97 private:
    97 private:
    98     QString mConnectionName;
    98     QString mConnectionName;
    99     QString mDatabaseName;
    99     QString mDatabaseName;
   100 
   100 
   101     static QScopedPointer<HsDatabase> mInstance;
   101     static HsDatabase *mInstance;
   102 };
   102 };
   103 
   103 
   104 #endif // HSDATABASE_H
   104 #endif // HSDATABASE_H