BeckyPlugin library  2.4
class library for Becky! plugin
GroupIndex.h
1 #ifndef _GRPIDX_H
2 #define _GRPIDX_H
3 //==================================================================================
4 // Replyer plug in main source file.
5 // Group.idx file format
6 // Programmed by you-chi@fsinet.or.jp
7 // Copyright (C) 2001 by you-chi@fsinet.or.jp
8 // All rights reserved.
9 //==================================================================================
10 #include <map>
11 #include <string>
12 #include <stdlib.h>
13 #include "SmallFile.h"
14 
15 // Group.idx file format
16 // Number'¥t'Number'¥t'some.bab'¥t'Name'¥t'e-mail-address'¥t'Nick'¥t'Number...¥r¥n
17 // This class picked up Name and e-mail-address from *.idx
18 //
19 #define ADDRESS_MAX_LENGTH 1024
20 
21 struct SVcardItem;
22 class CBeckyAPI;
23 
24 // 2011/02/08 高速化のために map を記録するように変更
25 class SVCard;
26 typedef std::map<std::string, SVCard *> SVCardList;
27 typedef std::map<std::string, SVCard *>::iterator SVCardListIt;
28 
30 class SGroupIndex : public SSmallFile
31 {
32 private:
33  char Drive[_MAX_DRIVE];
34  char Dir[_MAX_DIR];
35  char Fname[ _MAX_FNAME + _MAX_DIR + 1 ];
36 
37  // Local copy area
38  char Name[ ADDRESS_MAX_LENGTH ];
39  char Email[ ADDRESS_MAX_LENGTH ];
40 
44  SVCardList VCardList;
45 
49  SVCard *GetVCard( const char *_Path );
50 
51 protected:
56  char *SearchExtra( const char *_Email, SVcardItem **_Card );
57 
58 public:
61  SGroupIndex( const char *_IndexFile );
63  virtual ‾SGroupIndex();
64 
68  char *Search( const char *_Email );
69 
75  bool SearchVCard( const char *_Email, SVcardItem **_Card );
76 
77 };
78 
79 
80 #endif
SGroupIndex(const char *_IndexFile)
Definition: GroupIndex.cpp:16
char * SearchExtra(const char *_Email, SVcardItem **_Card)
Definition: GroupIndex.cpp:43
bool SearchVCard(const char *_Email, SVcardItem **_Card)
Definition: GroupIndex.cpp:33
Becky API クラス
Definition: BeckyApi.h:96
char * Search(const char *_Email)
Definition: GroupIndex.cpp:38
VCARD データ
Definition: VCard.h:16
virtual ‾SGroupIndex()
デストラクタ
Definition: GroupIndex.cpp:25
VCard 形式ファイルクラス
Definition: VCard.h:61
Group.idx クラス
Definition: GroupIndex.h:30