QTfrontend/util/DataManager.h
changeset 6931 86c951cd0f3f
parent 6930 d187ea93fc4f
child 6937 7f77fa908a4e
equal deleted inserted replaced
6930:d187ea93fc4f 6931:86c951cd0f3f
    40  * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    40  * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    41  *
    41  *
    42  * @author sheepluva
    42  * @author sheepluva
    43  * @since 0.9.17
    43  * @since 0.9.17
    44  */
    44  */
    45 class DataManager
    45 class DataManager: public QObject
    46 {
    46 {
       
    47         Q_OBJECT
       
    48 
    47     public:
    49     public:
    48         /**
    50         /**
    49          * @brief Returns reference to the <i>singleton</i> instance of this class.
    51          * @brief Returns reference to the <i>singleton</i> instance of this class.
    50          *
    52          *
    51          * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    53          * @see <a href="http://en.wikipedia.org/wiki/Singleton_pattern">singleton pattern</a>
    87          * @return destination of path data file.
    89          * @return destination of path data file.
    88          */
    90          */
    89         QString findFileForWrite(const QString & relativeDataFilePath) const;
    91         QString findFileForWrite(const QString & relativeDataFilePath) const;
    90 
    92 
    91 
    93 
       
    94     public slots:
       
    95         /**
       
    96          * @brief Reloads data from storage.
       
    97          */
       
    98         void reload();
       
    99 
       
   100 
       
   101     signals:
       
   102         /**
       
   103          * @brief This signal is emitted after the data has been updated.
       
   104          */
       
   105         void updated();
       
   106 
       
   107 
    92     private:
   108     private:
    93         /**
   109         /**
    94          * @brief Class constructor of the <i>singleton</i>.
   110          * @brief Class constructor of the <i>singleton</i>.
    95          *
   111          *
    96          * Not to be used from outside the class,
   112          * Not to be used from outside the class,