OSDN Git Service

[cmake] Prefer `string APPEND`
[timidity41/timidity41.git] / kbtim / kbtim_setting.h
1 #ifndef KBTIM_SETTING_H
2 #define KBTIM_SETTING_H
3
4 class KbTimSetting
5 {
6     SETTING_TIMIDITY m_st;
7     char m_szIniFile[MAX_PATH*2];
8     char m_szCfgFile[MAX_PATH*2];
9
10     FILETIME m_ftIni;
11     FILETIME m_ftCfg;
12     HANDLE   m_hNotification;
13
14     int __fastcall IniGetKeyInt(char *section, char *key,int *n);
15     int __fastcall IniGetKeyInt32(char *section, char *key,int32 *n) {
16         return IniGetKeyInt(section, key, (int*) n);
17     }
18     int __fastcall IniGetKeyInt8(char *section, char *key,int8 *n);
19     int __fastcall IniGetKeyFloat(char *section, char *key, FLOAT_T *n);
20     int __fastcall IniGetKeyIntArray(char *section, char *key, int *n, int arraysize);
21     int __fastcall IniGetKeyStringN(char *section, char *key, char *str, int size);
22
23     void __fastcall GetIniCfgFileTime(FILETIME* pftIni, FILETIME* pftCfg);
24 ///r
25     void __fastcall KbTimOverrideSFSettingLoad(void);
26 public:
27     const char* __fastcall GetIniFileName(void) const { return m_szIniFile; }
28     const char* __fastcall GetCfgFileName(void) const { return m_szCfgFile; }
29     BOOL __fastcall LoadIniFile(const char *cszIniFile);
30     void __fastcall Close(void);
31     void __fastcall Apply(void);
32     BOOL __fastcall IsUpdated(void);
33     KbTimSetting(void);
34     ~KbTimSetting(void);
35 };
36
37 #endif