<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.20" xml:lang="en-US">
  <compounddef id="Metric_8h" kind="file" language="C++">
    <compoundname>Metric.h</compoundname>
    <includes refid="MetricUpdate_8h" local="no">libusermetricsinput/MetricUpdate.h</includes>
    <includes local="no">QtCore/QSharedPointer</includes>
    <includedby refid="MetricManager_8h" local="no">libusermetricsinput/MetricManager.h</includedby>
    <incdepgraph>
      <node id="3">
        <label>QtCore/QObject</label>
      </node>
      <node id="4">
        <label>QtCore/QScopedPointer</label>
      </node>
      <node id="2">
        <label>libusermetricsinput/MetricUpdate.h</label>
        <link refid="MetricUpdate_8h"/>
        <childnode refid="3" relation="include">
        </childnode>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="5">
        <label>QtCore/QSharedPointer</label>
      </node>
      <node id="1">
        <label>libusermetricsinput/Metric.h</label>
        <link refid="Metric_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="2">
        <label>libusermetricsinput/MetricManager.h</label>
        <link refid="MetricManager_8h"/>
      </node>
      <node id="1">
        <label>libusermetricsinput/Metric.h</label>
        <link refid="Metric_8h"/>
        <childnode refid="2" relation="include">
        </childnode>
      </node>
    </invincdepgraph>
    <innerclass refid="classUserMetricsInput_1_1Metric" prot="public">UserMetricsInput::Metric</innerclass>
    <innernamespace refid="namespaceUserMetricsInput">UserMetricsInput</innernamespace>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(C)<sp/>2013<sp/>Canonical,<sp/>Ltd.</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/>This<sp/>library<sp/>is<sp/>free<sp/>software;<sp/>you<sp/>can<sp/>redistribute<sp/>it<sp/>and/or<sp/>modify<sp/>it<sp/>under</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>the<sp/>terms<sp/>of<sp/>version<sp/>3<sp/>of<sp/>the<sp/>GNU<sp/>Lesser<sp/>General<sp/>Public<sp/>License<sp/>as<sp/>published</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>by<sp/>the<sp/>Free<sp/>Software<sp/>Foundation.</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>This<sp/>library<sp/>is<sp/>distributed<sp/>in<sp/>the<sp/>hope<sp/>that<sp/>it<sp/>will<sp/>be<sp/>useful,<sp/>but<sp/>WITHOUT</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*<sp/>ANY<sp/>WARRANTY;<sp/>without<sp/>even<sp/>the<sp/>implied<sp/>warranty<sp/>of<sp/>MERCHANTABILITY<sp/>or<sp/>FITNESS</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE.<sp/>See<sp/>the<sp/>GNU<sp/>Lesser<sp/>General<sp/>Public<sp/>License<sp/>for<sp/>more</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/>details.</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/>You<sp/>should<sp/>have<sp/>received<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>GNU<sp/>Lesser<sp/>General<sp/>Public<sp/>License</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/>along<sp/>with<sp/>this<sp/>program.<sp/><sp/>If<sp/>not,<sp/>see<sp/>&lt;http://www.gnu.org/licenses/&gt;.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/>Author:<sp/>Pete<sp/>Woods<sp/>&lt;pete.woods@canonical.com&gt;</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>USERMETRICSINPUT_METRIC_H_</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>USERMETRICSINPUT_METRIC_H_</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight></codeline>
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="MetricUpdate_8h" kindref="compound">libusermetricsinput/MetricUpdate.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;QtCore/QSharedPointer&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight></codeline>
<codeline lineno="29" refid="namespaceUserMetricsInput" refkind="compound"><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespaceUserMetricsInput" kindref="compound">UserMetricsInput</ref><sp/>{</highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classUserMetricsInput_1_1Metric" kindref="compound">Metric</ref>;</highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight></codeline>
<codeline lineno="36" refid="namespaceUserMetricsInput_1af5d8d34e6e6ea8560855d005f8b8c118" refkind="member"><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/>QSharedPointer&lt;Metric&gt;<sp/><ref refid="namespaceUserMetricsInput_1af5d8d34e6e6ea8560855d005f8b8c118" kindref="member">MetricPtr</ref>;</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight></codeline>
<codeline lineno="38" refid="namespaceUserMetricsInput_1a12d7e28de5804b46f948a6f7ccf5977d" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">enum</highlight><highlight class="normal"><sp/><ref refid="namespaceUserMetricsInput_1a12d7e28de5804b46f948a6f7ccf5977d" kindref="member">MetricType</ref><sp/>{</highlight></codeline>
<codeline lineno="39" refid="namespaceUserMetricsInput_1a12d7e28de5804b46f948a6f7ccf5977da66d5b93663b5824e6f6b89fdc35e17e1" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespaceUserMetricsInput_1a12d7e28de5804b46f948a6f7ccf5977da66d5b93663b5824e6f6b89fdc35e17e1" kindref="member">USER</ref>,<sp/><ref refid="namespaceUserMetricsInput_1a12d7e28de5804b46f948a6f7ccf5977da3528c6c50d93d89375670fe6b7e7c492" kindref="member">SYSTEM</ref>,</highlight></codeline>
<codeline lineno="40"><highlight class="normal">};</highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
<codeline lineno="50" refid="classUserMetricsInput_1_1Metric" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal">Q_DECL_EXPORT<sp/><ref refid="classUserMetricsInput_1_1Metric" kindref="compound">Metric</ref>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/>QObject<sp/>{</highlight></codeline>
<codeline lineno="51"><highlight class="normal"></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="55" refid="classUserMetricsInput_1_1Metric_1a33d519fb328c1372664dfdaa8cec8538" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classUserMetricsInput_1_1Metric_1a33d519fb328c1372664dfdaa8cec8538" kindref="member">Metric</ref>(QObject<sp/>*parent<sp/>=<sp/>0);</highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
<codeline lineno="60" refid="classUserMetricsInput_1_1Metric_1a60793ca328456875f9a7a27c72e14e20" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classUserMetricsInput_1_1Metric_1a60793ca328456875f9a7a27c72e14e20" kindref="member">~Metric</ref>();</highlight></codeline>
<codeline lineno="61"><highlight class="normal"></highlight></codeline>
<codeline lineno="71" refid="classUserMetricsInput_1_1Metric_1adf28239b6ee21f1f22c98c2c9ed1ec77" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classUserMetricsInput_1_1MetricUpdate" kindref="compound">MetricUpdate</ref><sp/>*<sp/><ref refid="classUserMetricsInput_1_1Metric_1adf28239b6ee21f1f22c98c2c9ed1ec77" kindref="member">update</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>QString<sp/>&amp;username<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal">)<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="72"><highlight class="normal"></highlight></codeline>
<codeline lineno="80" refid="classUserMetricsInput_1_1Metric_1acb6a02587987a6148103f56fc9e4f8b5" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classUserMetricsInput_1_1Metric_1acb6a02587987a6148103f56fc9e4f8b5" kindref="member">update</ref>(</highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>value,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>QString<sp/>&amp;username<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal">)<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="81"><highlight class="normal"></highlight></codeline>
<codeline lineno="89" refid="classUserMetricsInput_1_1Metric_1a28f907f811e37e522a253f1665355c5c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classUserMetricsInput_1_1Metric_1a28f907f811e37e522a253f1665355c5c" kindref="member">increment</ref>(</highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>amount<sp/>=<sp/>1.0f,</highlight></codeline>
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>QString<sp/>&amp;username<sp/>=<sp/></highlight><highlight class="stringliteral">&quot;&quot;</highlight><highlight class="normal">)<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="91"><highlight class="normal">};</highlight></codeline>
<codeline lineno="92"><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal">}</highlight></codeline>
<codeline lineno="94"><highlight class="normal"></highlight></codeline>
<codeline lineno="99"><highlight class="preprocessor">#endif<sp/>//<sp/>USERMETRICSINPUT_METRIC_H_</highlight></codeline>
    </programlisting>
    <location file="libusermetricsinput/Metric.h"/>
  </compounddef>
</doxygen>
