~ubuntu-branches/ubuntu/karmic/devicekit-power/karmic-proposed

« back to all changes in this revision

Viewing changes to src/dkp-history.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-01-08 11:43:09 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090108114309-sz25jx234bgww096
Tags: 003-0ubuntu1
* New upstream version 003.
* debian/control: Bump libdevkit-gobject-dev build dependency.
* debian/contro: Replace Debian's Vcs-Svn: with our Vcs-Bzr: branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
        GObjectClass             parent_class;
52
52
} DkpHistoryClass;
53
53
 
 
54
typedef enum {
 
55
        DKP_HISTORY_TYPE_CHARGE,
 
56
        DKP_HISTORY_TYPE_RATE,
 
57
        DKP_HISTORY_TYPE_TIME_FULL,
 
58
        DKP_HISTORY_TYPE_TIME_EMPTY,
 
59
        DKP_HISTORY_TYPE_UNKNOWN
 
60
} DkpHistoryType;
 
61
 
 
62
 
54
63
GType            dkp_history_get_type                   (void) G_GNUC_CONST;
55
64
DkpHistory      *dkp_history_new                        (void);
56
 
EggObjList      *dkp_history_get_charge_data            (DkpHistory             *history,
57
 
                                                         guint                   timespan);
58
 
EggObjList      *dkp_history_get_rate_data              (DkpHistory             *history,
59
 
                                                         guint                   timespan);
60
 
EggObjList      *dkp_history_get_time_full_data         (DkpHistory             *history,
61
 
                                                         guint                   timespan);
62
 
EggObjList      *dkp_history_get_time_empty_data        (DkpHistory             *history,
63
 
                                                         guint                   timespan);
 
65
EggObjList      *dkp_history_get_data                   (DkpHistory             *history,
 
66
                                                         DkpHistoryType          type,
 
67
                                                         guint                   timespan,
 
68
                                                         guint                   resolution);
64
69
EggObjList      *dkp_history_get_profile_data           (DkpHistory             *history,
65
70
                                                         gboolean                charging);
66
 
 
67
71
gboolean         dkp_history_set_id                     (DkpHistory             *history,
68
72
                                                         const gchar            *id);
69
73
gboolean         dkp_history_set_state                  (DkpHistory             *history,