home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 Mobile / Chip_Mobile_2001.iso / palm / business / printcar / printcar.exe / src / DB / AddressAppInfo.h < prev    next >
C/C++ Source or Header  |  2000-06-10  |  1KB  |  54 lines

  1. //
  2. //  $Id: AddressAppInfo.h,v 1.1 2000/06/10 00:19:57 sergey Exp $
  3. //
  4.  
  5. #ifndef _AddressAppInfo_h_
  6. #define _AddressAppInfo_h_
  7.  
  8. #include "AppInfo.h"
  9.  
  10.  
  11. namespace DB
  12. {
  13.     //
  14.     // Adresse AppInfo class.
  15.     //
  16.     // Pilot-link package used as a source of internal
  17.     // details about address DB.
  18.     //
  19.     class AddressAppInfo: public AppInfo
  20.     {
  21.     public:
  22.         AddressAppInfo();
  23.         virtual ~AddressAppInfo();
  24.  
  25.         //AddressAppInfo(const AddressAppInfo& other);
  26.         //AddressAppInfo& operator =(const AddressAppInfo& other);
  27.  
  28.     // operations
  29.     public:
  30.         virtual bool restore(const void* buffer);
  31.  
  32.     // attributes
  33.  
  34.         // Amount of phone labels
  35.         static const int PHONE_LABEL_COUNT  = 8;
  36.  
  37.         // Returns label text by the index
  38.         const char* phoneLabel(int index) const;
  39.  
  40.     // implementation
  41.     private:
  42.         void clearData();
  43.  
  44.     // data members
  45.     private:
  46.         static const int LABEL_SIZE = 16;
  47.  
  48.         char _phoneLabels[PHONE_LABEL_COUNT][LABEL_SIZE];
  49.     };
  50. }
  51. // namespace DB
  52.  
  53. #endif // _AddressAppInfo_h_
  54.