BeckyPlugin library
2.4
class library for Becky! plugin
|
アドレスブッククラス. [詳解]
#include <Addrbook.h>
公開メンバ関数 | |
SAddressBook (LPCTSTR _BasePath) | |
デフォルトのパス [詳解] | |
virtual | ‾SAddressBook () |
デストラクタ | |
void | Rebuild () |
V2.4.0 再構築を追加 | |
bool | Search (const char *_Email, char *_Name, size_t _Length, LPCTSTR _Book=NULL) |
bool | SearchVCard (const char *_Email, SVcardItem **_Card, LPCTSTR _Book) |
std::string | GetCurrentBook (LPCSTR _DataFolder, LPCSTR _GetCurrentFolder) |
bool | ForEach (FEachPath _UserFunction, void *_UserData) |
SChainItem * | GetPathList () |
パスリスト取得 | |
静的公開メンバ関数 | |
static void | CopyName (char *_Name, size_t _Length, char *_Base) |
公開変数類 | |
char * | BasePath |
限定公開メンバ関数 | |
void | CreatePathList (LPCTSTR _BasePath) |
void | DeletePathList () |
パスリスト解放 | |
bool | InsertPathList (std::string _Path) |
bool | ForEachTrace (SChainItem *_Root, const char *_Path, FEachPath _UserFunc, void *_UserData) |
bool | ForEachNext (SChainItem *_Root, const char *_Path, FEachPath _UserFunc, void *_UserData) |
静的限定公開メンバ関数 | |
static SGroupIndex * | GetGroupIndex (const char *_Path) |
static bool | CreateCallBack (DWORD _UserData, const char *_Path, const char *_FileName, const WIN32_FIND_DATA *_FindData) |
static bool | IndexCallBack (DWORD _UserData, const char *_Path, const char *_FileName, const WIN32_FIND_DATA *_FindData) |
static bool | SubCallBack (DWORD _UserData, const char *_Path, const char *_FileName, const WIN32_FIND_DATA *_FindData) |
static bool | SearchGroup (LPCTSTR _Path, const char *_Email, char *_Name, size_t _Length) |
static bool | Finder (SChainItem *_Node, char *_Path, void *_UserData) |
static bool | PathFinder (SChainItem *_Node, char *_Path, void *_UserData) |
static bool | CardFinder (SChainItem *_Node, char *_Path, void *_UserData) |
static bool | SearchGroup (LPCTSTR _Path, const char *_Email, SVcardItem **_Item) |
限定公開変数類 | |
SBookList | BookList |
アドレスブックリスト(2010/09/10 追加) | |
SChainItem * | PathList |
パスリスト | |
静的限定公開変数類 | |
static SGroupIndexList * | GroupIndexList = 0 |
アドレスブッククラス.
SAddressBook::SAddressBook | ( | LPCTSTR | _BasePath | ) |
デフォルトのパス
コンストラクタ
_BasePath | デフォルトのパス |
|
staticprotected |
VCard データ取得用
_Root | 開始位置 |
_Path | パス |
_UserData | 拡張情報 |
|
static |
クオーテーションでくくった名前の取得
_Name | 名前 |
_Length | 名前領域サイズ |
_Base | 基準名 |
|
staticprotected |
アドレス帳生成コールバック
_UserData | クラスポインタ |
_Path | パス名 |
_FileName | ファイル名 |
_FindData | 検索構造体ポインタ |
|
protected |
パスリスト生成
_BasePath | 基準パス名 |
|
staticprotected |
検索処理
_Root | 開始位置 |
_Path | パス |
_UserFunc | 比較関数ポインタ |
bool SAddressBook::ForEach | ( | FEachPath | _UserFunction, |
void * | _UserData | ||
) |
順次検索
_UserFunction | コールバック関数 |
_UserData | 拡張情報 |
|
protected |
パス次検索
_Root | 開始位置 |
_Path | パス |
_UserFunc | 比較関数ポインタ |
_UserData | 拡張情報 |
|
protected |
パス順次検索
_Root | 開始位置 |
_Path | パス |
_UserFunc | 比較関数ポインタ |
_UserData | 拡張情報 |
std::string SAddressBook::GetCurrentBook | ( | LPCSTR | _DataFolder, |
LPCSTR | _GetCurrentFolder | ||
) |
現在のブック取得
_DataFolder | データフォルダ |
_GetCurrentFolder | カレントフォルダ |
|
staticprotected |
GroupIndex の取得
_Path | パス名 |
|
staticprotected |
'Group.ini' コールバック
_UserData | クラスポインタ |
_Path | パス名 |
_FileName | ファイル名 |
_FindData | 検索構造体ポインタ |
|
protected |
パスのリストへの挿入
_Path | パス名 |
|
staticprotected |
パス検索処理
_Root | 開始位置 |
_Path | パス |
_UserData | 拡張情報 |
bool SAddressBook::Search | ( | const char * | _Email, |
char * | _Name, | ||
size_t | _Length, | ||
LPCTSTR | _Book = NULL |
||
) |
メールアドレスで名前を検索
_Email | メールアドレス |
_Name | 名前 |
_Length | 名前領域サイズ |
_Book | アドレスブック名 |
|
staticprotected |
グループの検索
_Path | パス名 |
_Email | メールアドレス |
_Name | 名前 |
_Length | 名前領域の長さ |
|
staticprotected |
グループ検索
_Path | パス |
_Email | メールアドレス |
_Item | VCardアイテム |
bool SAddressBook::SearchVCard | ( | const char * | _Email, |
SVcardItem ** | _Card, | ||
LPCTSTR | _Book | ||
) |
VCard検索
_Email | メールアドレス |
_Card | VCard格納ポインタ |
_Book | アドレスブック名 |
|
staticprotected |
再帰処理
_UserData | クラスポインタ |
_Path | パス名 |
_FileName | ファイル名 |
_FindData | 検索構造体ポインタ |
|
staticprotected |
GroupIndexList の取得(なければ map に設定)