~ubuntu-branches/ubuntu/saucy/libusermetrics/saucy-proposed

« back to all changes in this revision

Viewing changes to examples/MetricManagerAdvanced.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Pete Woods, Ubuntu daily release
  • Date: 2013-09-13 15:17:10 UTC
  • mfrom: (1.1.17)
  • Revision ID: package-import@ubuntu.com-20130913151710-bqoignaii7r1by3w
Tags: 1.1.1+13.10.20130913-0ubuntu1
[ Pete Woods ]
* Add support for max and min.
* Add private API warning to main docs page

[ Ubuntu daily release ]
* Automatic snapshot from revision 130

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
        // You can hold onto this shared pointer for as long as you want
13
13
        MetricPtr metric(
14
 
                        manager->add("twitter", "<b>%1</b> tweets received today",
15
 
                                        "No tweets today", APP_ID));
 
14
                        manager->add(
 
15
                                        MetricParameters("twitter").formatString(
 
16
                                                        "<b>%1</b> tweets received today").emptyDataString(
 
17
                                                        "No tweets today").textDomain(APP_ID)));
16
18
 
17
19
        // The update is sent when the update object is destroyed
18
20
        MetricUpdatePtr update(metric->update());