File: UserButton.h

package info (click to toggle)
dasher 4.11%2Bgit20130508.adc653-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 40,248 kB
  • ctags: 5,158
  • sloc: xml: 185,479; cpp: 32,301; sh: 11,207; makefile: 828; ansic: 483
file content (40 lines) | stat: -rw-r--r-- 807 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef __UserButton_h__
#define __UserButton_h__

#include "FileLogger.h"
#include <string>
#include <vector>

extern CFileLogger* g_pLogger;

class CUserButton;

typedef std::vector<CUserButton>               VECTOR_USER_BUTTON;
typedef std::vector<CUserButton>::iterator     VECTOR_USER_BUTTON_ITER;
typedef std::vector<CUserButton*>              VECTOR_USER_BUTTON_PTR;
typedef std::vector<CUserButton*>::iterator    VECTOR_USER_BUTTON_PTR_ITER;

/// \ingroup Logging
/// \{
class CUserButton {
 public:
  CUserButton(int iId, int iType, int iEffect);

  std::string GetXML(const std::string& strPrefix = "");

  int GetCount() {
    if(m_iType == 0)
      return 1;
    else
      return 0;
  }

 protected:
  int m_iId;
  int m_iType;
  int m_iEffect;
  std::string m_strStringTime;
};
/// \}

#endif