File: config.h

package info (click to toggle)
speaker 1.0.1-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 264 kB
  • ctags: 174
  • sloc: cpp: 1,521; tcl: 786; makefile: 91; sh: 22
file content (35 lines) | stat: -rw-r--r-- 1,325 bytes parent folder | download | duplicates (2)
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
//************************************************************
// config.h - configuration classes for the spk client/server
//  Author Eugene Anikin     anikin@anikin.ddns.org
//************************************************************

class ConfigInfo
{
   public:
      char* SerialPort;
      char* CommandSet;      // File with command-set of the modem
      char* FirstActionFile; // Start with this response file. Section: "START"
      char* GSPKPath;   // location of the Tcl/Tk script

      char* Counter;
      char* DefPath;    // Path to any file if it does not start with '/'
      char* LockPath;   // Usually it is /var/lock
      char* RunPath;    // Usually it is /var/run

      int   CheckGSM;   // Should we check and remove GSM frames
      int   TestLocal;  // Use local handset to test spk
      int   PortSpeed;  // Port speed in voice mode
      int   UseCallerID;// Whether we should use caller ID feature
      int   SpkCapable; // Whether the modem is speakerphone-capable

      ConfigInfo();
      ConfigInfo(ConfigInfo* conf);
      ~ConfigInfo();

      void ReadConfig(char* FName);
      void SaveConfig(char* FName);

      // Make full path name from FName. If FName does not start
      // with '/', it will be concatenated with DefPath.
      char* CreateFullPath(char* FName);
};