~ubuntu-branches/ubuntu/trusty/libusermetrics/trusty-proposed

« back to all changes in this revision

Viewing changes to src/libusermetricsoutput/UserData.h

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Pete Woods, Ubuntu daily release
  • Date: 2013-07-02 02:02:52 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130702020252-53yuhnlabsq1cq8x
Tags: 1.0.1+13.10.20130702-0ubuntu1
[ Pete Woods ]
* Implement most of storage service and wire up input API.
* Wire up the output API to the storage service.

[ Ubuntu daily release ]
* Automatic snapshot from revision 80

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
namespace UserMetricsOutput {
27
27
 
 
28
class UserData;
 
29
 
 
30
typedef QSharedPointer<UserData> UserDataPtr;
 
31
 
28
32
class UserData: public QObject {
 
33
Q_OBJECT
 
34
 
29
35
public:
30
 
        typedef QSharedPointer<DataSet> DataSetPtr;
31
 
 
32
36
        typedef QMap<QString, DataSetPtr> DataSetMap;
33
37
 
34
38
        typedef DataSetMap::iterator iterator;
35
39
 
36
40
        typedef DataSetMap::const_iterator const_iterator;
37
41
 
38
 
        UserData(QObject *parent = 0);
 
42
        explicit UserData(QObject *parent = 0);
39
43
 
40
44
        virtual ~UserData();
41
45
 
43
47
 
44
48
        virtual const_iterator constEnd() const;
45
49
 
46
 
        virtual iterator find(const QString & dataSetId);
 
50
        virtual iterator insert(const QString &dataSetId, DataSetPtr dataSet);
47
51
 
48
52
protected:
49
53
        DataSetMap m_dataSets;