Source: kalcatel/alcasync/contacts.h
|
|
|
|
/*
* contacts.h
*
* reading of contacts and calls using AT commands
*
* Copyright (c) 2002-2003 by Michal Cihar
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* In addition to GNU GPL this code may be used also in non GPL programs but
* if and only if programmer/distributor of that code receives written
* permission from author of this code.
*
*/
/* $Id: contacts.h,v 1.7 2003/05/09 16:52:46 michal Exp $ */
#ifndef CONTACTS_H
#define CONTACTS_H
class QString;
/* SIM phonebook */
#define PB_SIM "SM"
/* Own number phonebook */
#define PB_OWN "ON"
/* Last dialling phonebook */
#define PB_LAST_DIAL "LD"
/* Received calls phonebook */
#define PB_RECEIVED "RC"
/* Missed calls phonebook */
#define PB_MISSED "MC"
/** Structure used to save contacts
*/
struct ContactData {
/** position
*/
int pos;
/** phone number
*/
char *number;
/** contact name
*/
QString *name;
};
/** Reads contacts from current phonebook.
*/
ContactData *get_contacts(int from=1, int to=200);
/** Selects currect phonebook.
*/
int select_phonebook(const char *pbtype);
#endif
Generated by: michal on quirk.cic on Fri May 9 19:34:14 2003, using kdoc 2.0a54. |