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
|