[Tcladdressbook-commits] Source TclAddressBookUtils.h,NONE,1.1
Status: Alpha
Brought to you by:
bdesgraupes
|
From: <bde...@us...> - 2003-12-05 20:22:52
|
Update of /cvsroot/tcladdressbook/Source
In directory sc8-pr-cvs1:/tmp/cvs-serv22690/Source
Added Files:
TclAddressBookUtils.h
Log Message:
Redispatched funcs. Implements [add property]
--- NEW FILE: TclAddressBookUtils.h ---
/*
* File : "TclAddressBookUtils.h"
* Created: 2003-12-05 10:05:19
* Last modification: 2003-12-04 18:03:13
* Author: Bernard Desgraupes
* e-mail: <bde...@ea...>
*
* Header file for TclAddressBookUtils.c
*
* (c) Copyright : Bernard Desgraupes, 2003
* All rights reserved.
* This software is free software with BSD licence.
* Versions history: see the Changes.Log file.
*
* $Date: 2003/12/05 20:22:49 $
* $Revision: 1.1 $
*/
#ifndef TCLADDRESSBOOKUTILS_H
#define TCLADDRESSBOOKUTILS_H
/*
* Enumerated values to designate the type of records
*/
static enum {
rec_undefined = -1,
rec_group = 0,
rec_person
} recordType;
/*
* Prototypes for the functions
*/
int TclAB_TypeFromRecord(ABAddressBookRef ab, ABRecordRef inRecord);
void TclAB_GetAllValues(Tcl_Interp *interp,
ABAddressBookRef ab,
ABRecordRef inRecord,
CONST84 char * inVar,
int inRecordType);
void TclAB_GetValue(Tcl_Interp *interp,
ABAddressBookRef ab,
CFStringRef theProperty,
CFStringRef theValue,
CONST84 char * var,
int inRecordType);
Boolean TclAB_SetValue(Tcl_Interp *interp,
ABRecordRef theRecord,
CFStringRef inProperty,
CONST84 char * inValue,
ABPropertyType inPropType);
void TclAB_ResultListFromCFArray(Tcl_Interp *interp,
Tcl_Obj *resultPtr,
CFArrayRef allSubGroups,
Boolean onlyID,
int inRecordType);
int TclAB_ListItems(Tcl_Interp *interp,
int objc,
Tcl_Obj *CONST objv[],
Tcl_Obj *resultPtr,
int inRecordType);
void TclAB_SetArrayOrResult(Tcl_Interp *interp, CONST84 char * inVar, char * inPropName, char * inStr);
Boolean TclAB_CheckGroup(Tcl_Interp *interp, ABAddressBookRef ab, CONST84 char * inGroupUID,
CONST84 char * option, ABRecordRef * outGroupRef);
int TclAB_AddRecord(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], Tcl_Obj *resultPtr, int inRecordType);
int TclAB_AddProperty(Tcl_Interp *interp, int objc, Tcl_Obj *CONST objv[], Tcl_Obj *resultPtr);
extern Tcl_Obj * TclLindexList(Tcl_Interp* interp,
Tcl_Obj* listPtr,
Tcl_Obj* argPtr );
#endif // TCLADDRESSBOOKUTILS_H
|