SWILIB API (ELKA)    
Loading...
Searching...
No Matches
addressbook.h File Reference
#include "base.h"
#include "wstring.h"

Go to the source code of this file.

Data Structures

struct  AB_UNPRES_ITEM
 Item of the AB_UNPRES. More...
 
struct  AB_UNPRES
 Uncompressed APO entry. More...
 
struct  PKT_NUM
 Value of the adressbook list item. More...
 
struct  AbNumList
 Item of the adressbook list. More...
 
struct  NativeAbData
 Native address book data. More...
 

Typedefs

typedef struct NativeAbData NativeAbData
 
typedef struct AbNumList AbNumList
 
typedef struct PKT_NUM PKT_NUM
 
typedef struct AB_UNPRES AB_UNPRES
 
typedef struct AB_UNPRES_ITEM AB_UNPRES_ITEM
 

Functions

int OpenNativeAddressbook (int type, int unk1, int unk2, NativeAbData *data)
 Open native address book.
 
NativeAbData * AllocNativeAbData (void)
 Allocate native addressbook data.
 
int FreeNativeAbData (NativeAbData *data)
 Free allocated native addressbook data.
 
int GetFilledNAbDataCount (NativeAbData *data)
 Get count of the items in NativeAbData.
 
PKT_NUM * GetDataFromNAbData (NativeAbData *data, int index)
 Get item data from the NativeAbData by index.
 
int GetNativeAbDataStatus (NativeAbData *data, int index)
 Get item status from the NativeAbData by index.
 
int GetNativeAbDataType (NativeAbData *data, int index)
 Get item type from the NativeAbData by index.
 
WSHDR * GetNumFromNativeAbData (NativeAbData *data, int type, int index)
 Get number from the NativeAbData.
 
int SetNumToNativeAbData (NativeAbData *data, int type, const WSHDR *num)
 Set number to the NativeAbData.
 
void UnpackNumPkt (const PKT_NUM *pkt, char *buf, int maxlen)
 Decode PKT_NUM for the phone number.
 
Functions for read files in <tt>0:\\\\System\\\\apo\\\\addr\\\\</tt>
int UnpackABentry (AB_UNPRES *entry, const void *data, int size, int flags)
 Unpack entry.
 
int FreeUnpackABentry (AB_UNPRES *entry, void *mfree_fn)
 Free unpacked entry.
 
int GetTypeOfAB_UNPRES_ITEM (int item_type)
 Convert AB_UNPRES.item_type to the NativeAbData item type.