/*

  $Id: gnapplet.h,v 1.12 2004/06/20 00:11:47 bozo Exp $

  G N O K I I

  A Linux/Unix toolset and driver for Nokia mobile phones.

  This file is part of gnokii.

  Gnokii 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.

  Gnokii 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.

  You should have received a copy of the GNU General Public License
  along with gnokii; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

  Copyright (C) 2004 BORBELY Zoltan <bozo@andrews.hu>

  This file provides functions specific to the gnapplet series.
  See README for more details on supported mobile phones.

*/

#ifndef _gnokii_phones_gnapplet_h
#define _gnokii_phones_gnapplet_h

#include "gnokii.h"


#define	GNAPPLET_MAJOR_VERSION	0
#define	GNAPPLET_MINOR_VERSION	11

#define	GNAPPLET_MSG_INFO	1
#define	GNAPPLET_MSG_PHONEBOOK	2
#define	GNAPPLET_MSG_NETINFO	3
#define	GNAPPLET_MSG_POWER	4
#define	GNAPPLET_MSG_DEBUG	5
#define	GNAPPLET_MSG_SMS	6

#define	GNAPPLET_MSG_INFO_ID_REQ	1
#define	GNAPPLET_MSG_INFO_ID_RESP	2

#define	GNAPPLET_MSG_PHONEBOOK_READ_REQ		1
#define	GNAPPLET_MSG_PHONEBOOK_READ_RESP	2
#define	GNAPPLET_MSG_PHONEBOOK_WRITE_REQ	3
#define	GNAPPLET_MSG_PHONEBOOK_WRITE_RESP	4
#define	GNAPPLET_MSG_PHONEBOOK_DELETE_REQ	5
#define	GNAPPLET_MSG_PHONEBOOK_DELETE_RESP	6
#define	GNAPPLET_MSG_PHONEBOOK_STATUS_REQ	7
#define	GNAPPLET_MSG_PHONEBOOK_STATUS_RESP	8

#define	GNAPPLET_MSG_NETINFO_GETCURRENT_REQ	1
#define	GNAPPLET_MSG_NETINFO_GETCURRENT_RESP	2
#define	GNAPPLET_MSG_NETINFO_GETRFLEVEL_REQ	3
#define	GNAPPLET_MSG_NETINFO_GETRFLEVEL_RESP	4

#define	GNAPPLET_MSG_POWER_INFO_REQ		1
#define	GNAPPLET_MSG_POWER_INFO_RESP		2

#define	GNAPPLET_MSG_DEBUG_NOTIFICATION		2

#define	GNAPPLET_MSG_SMS_FOLDER_LIST_REQ	1
#define	GNAPPLET_MSG_SMS_FOLDER_LIST_RESP	2
#define	GNAPPLET_MSG_SMS_FOLDER_STATUS_REQ	3
#define	GNAPPLET_MSG_SMS_FOLDER_STATUS_RESP	4
#define	GNAPPLET_MSG_SMS_FOLDER_CREATE_REQ	5
#define	GNAPPLET_MSG_SMS_FOLDER_CREATE_RESP	6
#define	GNAPPLET_MSG_SMS_FOLDER_DELETE_REQ	7
#define	GNAPPLET_MSG_SMS_FOLDER_DELETE_RESP	8
#define	GNAPPLET_MSG_SMS_STATUS_REQ		9
#define	GNAPPLET_MSG_SMS_STATUS_RESP		10
#define	GNAPPLET_MSG_SMS_MESSAGE_READ_REQ	11
#define	GNAPPLET_MSG_SMS_MESSAGE_READ_RESP	12
#define	GNAPPLET_MSG_SMS_MESSAGE_WRITE_REQ	13
#define	GNAPPLET_MSG_SMS_MESSAGE_WRITE_RESP	14
#define	GNAPPLET_MSG_SMS_MESSAGE_SEND_REQ	15
#define	GNAPPLET_MSG_SMS_MESSAGE_SEND_RESP	16
#define	GNAPPLET_MSG_SMS_MESSAGE_DELETE_REQ	17
#define	GNAPPLET_MSG_SMS_MESSAGE_DELETE_RESP	18
#define	GNAPPLET_MSG_SMS_CENTER_READ_REQ	19
#define	GNAPPLET_MSG_SMS_CENTER_READ_RESP	20
#define	GNAPPLET_MSG_SMS_CENTER_WRITE_REQ	21
#define	GNAPPLET_MSG_SMS_CENTER_WRITE_RESP	22


typedef struct {
	int proto_major;
	int proto_minor;
	char manufacturer[20];
	char model[GN_MODEL_MAX_LENGTH];
	char imei[GN_IMEI_MAX_LENGTH];
	char sw_version[GN_REVISION_MAX_LENGTH];
	char hw_version[GN_REVISION_MAX_LENGTH];
	gn_phone_model *pm;
} gnapplet_driver_instance;

#endif  /* #ifndef _gnokii_phones_gnapplet_h */
