summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mail2/libmail/libmail.pro7
-rw-r--r--noncore/unsupported/mail2/libmail/sharp_char.h241
-rw-r--r--noncore/unsupported/mail2/libmail/zaurusstuff.cpp38
-rw-r--r--noncore/unsupported/mail2/libmail/zaurusstuff.h23
4 files changed, 2 insertions, 307 deletions
diff --git a/noncore/unsupported/mail2/libmail/libmail.pro b/noncore/unsupported/mail2/libmail/libmail.pro
index ddabd07..894a4a5 100644
--- a/noncore/unsupported/mail2/libmail/libmail.pro
+++ b/noncore/unsupported/mail2/libmail/libmail.pro
@@ -1,27 +1,24 @@
1 TEMPLATE =lib 1 TEMPLATE =lib
2 CONFIG =qt warn_on debug 2 CONFIG =qt warn_on debug
3 #CONFIG =qt warn_on release 3 #CONFIG =qt warn_on release
4 HEADERS =configfile.h \ 4 HEADERS =configfile.h \
5 defines.h \ 5 defines.h \
6 imapbase.h \ 6 imapbase.h \
7 imaphandler.h \ 7 imaphandler.h \
8 imapresponse.h \ 8 imapresponse.h \
9 mailfactory.h \ 9 mailfactory.h \
10 md5.cpp \ 10 md5.cpp \
11 miscfunctions.h \ 11 miscfunctions.h \
12 sharp_char.h \ 12 smtphandler.h
13 smtphandler.h \
14 zaurusstuff.h
15 SOURCES =configfile.cpp \ 13 SOURCES =configfile.cpp \
16 imapbase.cpp \ 14 imapbase.cpp \
17 imaphandler.cpp \ 15 imaphandler.cpp \
18 imapresponse.cpp \ 16 imapresponse.cpp \
19 mailfactory.cpp \ 17 mailfactory.cpp \
20 md5.h \ 18 md5.h \
21 miscfunctions.cpp \ 19 miscfunctions.cpp \
22 smtphandler.cpp \ 20 smtphandler.cpp
23 zaurusstuff.cpp
24 INCLUDEPATH +=$(OPIEDIR)/include 21 INCLUDEPATH +=$(OPIEDIR)/include
25 LIBS +=-L$(OPIEDIR)/lib -lqpe 22 LIBS +=-L$(OPIEDIR)/lib -lqpe
26 TARGET =mail 23 TARGET =mail
27 DESTDIR =$(QTDIR)/lib 24 DESTDIR =$(QTDIR)/lib
diff --git a/noncore/unsupported/mail2/libmail/sharp_char.h b/noncore/unsupported/mail2/libmail/sharp_char.h
deleted file mode 100644
index 8bd8beb..0000000
--- a/noncore/unsupported/mail2/libmail/sharp_char.h
+++ b/dev/null
@@ -1,241 +0,0 @@
1/*
2 * linux/include/asm/sharp_char.h
3 */
4
5#ifndef __ASM_SHARP_CHAR_H_INCLUDED
6#define __ASM_SHARP_CHAR_H_INCLUDED
7
8/*
9 * If SHARPCHAR_USE_MISCDEV defined , misc driver architecture used instead of sharp_char
10 */
11
12#define SHARPCHAR_USE_MISCDEV
13
14/*
15 * devices defines...
16 */
17
18#ifndef SHARP_DEV_MAJOR
19#define SHARP_DEV_MAJOR 11
20#endif
21
22#ifndef SHARP_DEV_MINOR_START
23#define SHARP_DEV_MINOR_START 210
24#endif
25
26#define SHARP_DEV_MINOR_MAX 4 /* defines last minor number of SHARP device */
27
28#define SHARP_LED_MINOR (SHARP_DEV_MINOR_START+0)
29#define SHARP_BUZZER_MINOR (SHARP_DEV_MINOR_START+1)
30#define SHARP_GSM_MINOR (SHARP_DEV_MINOR_START+2)
31#define SHARP_AUDIOCTL_MINOR (SHARP_DEV_MINOR_START+3)
32#define SHARP_KBDCTL_MINOR (SHARP_DEV_MINOR_START+4)
33
34/*
35 * ioctl defines...
36 */
37
38#define SHARP_DEV_IOCTL_COMMAND_START 0x5680
39
40/* --- for SHARP_LED device --- */
41 #defineSHARP_LED_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START)
42#define SHARP_LED_GETSTATUS (SHARP_LED_IOCTL_START)
43#define SHARP_LED_SETSTATUS (SHARP_LED_IOCTL_START+1)
44#define SHARP_LED_ISUPPORTED (SHARP_LED_IOCTL_START+2)
45
46typedef struct sharp_led_status {
47 int which; /* select which LED status is wanted. */
48 int status; /* set new led status if you call SHARP_LED_SETSTATUS */
49} sharp_led_status;
50
51#define SHARP_LED_WHICH_MAX 15 /* last number of LED */
52
53/* parameters for 'which' member */
54#define SHARP_LED_PDA 0 /* PDA status */
55#define SHARP_LED_DALARM 1 /* daily alarm */
56#define SHARP_LED_SALARM 2 /* schedule alarm */
57#define SHARP_LED_BATTERY 3 /* main battery status */
58#define SHARP_LED_ACSTATUS 4 /* AC line status */
59#define SHARP_LED_CHARGER 5 /* charger status */
60#define SHARP_LED_PHONE_RSSI 6 /* phone status (RSSI...) */
61#define SHARP_LED_PHONE_DIAL 7 /* phone status (dialing...) */
62#define SHARP_LED_PHONE_IN 8 /* phone status (incoming..) */
63#define SHARP_LED_MAIL_EXISTS 9 /* mail status (exists or not) */
64#define SHARP_LED_MAIL_SEND 10 /* mail status (sending...) */
65#define SHARP_LED_MAIL_QUEUE 11 /* mail to send is in queue */
66#define SHARP_LED_COLLIE_0 12 /* 1st pri. battery LED control */
67#define SHARP_LED_COLLIE_1 13 /* 1st pri. mail LED control */
68#define SHARP_LED_COLLIE_2 14 /* reserved */
69#define SHARP_LED_COLLIE_3 15 /* reserved */
70
71/* parameters for 'status' member */
72#define LED_PDA_RUNNING 0 /* for SHARP_LED_RUN */
73#define LED_PDA_SUSPENDED 1 /* for SHARP_LED_RUN */
74#define LED_PDA_OFF 2 /* for SHARP_LED_RUN */
75#define LED_PDA_ERROR 3 /* for SHARP_LED_RUN */
76
77#define LED_DALARM_OFF 0 /* for SHARP_LED_DALARM */
78#define LED_DALARM_ON 1 /* for SHARP_LED_DALARM */
79
80#define LED_SALARM_OFF 0 /* for SHARP_LED_SALARM */
81#define LED_SALARM_ON 1 /* for SHARP_LED_SALARM */
82
83#define LED_BATTERY_GOOD 0 /* for SHARP_LED_BATTERY */
84#define LED_BATTERY_LOW 1 /* for SHARP_LED_BATTERY */
85#define LED_BATTERY_VERY_LOW 2 /* for SHARP_LED_BATTERY */
86#define LED_BATTERY_CRITICAL 3 /* for SHARP_LED_BATTERY */
87
88#define LED_CHARGER_OFF 0 /* for SHARP_LED_CHARGER */
89#define LED_CHARGER_CHARGING 1 /* for SHARP_LED_CHARGER */
90#define LED_CHARGER_ERROR 2 /* for SHARP_LED_CHARGER */
91
92#define LED_AC_NOT_CONNECTED 0 /* for SHARP_LED_ACSTATUS */
93#define LED_AC_CONNECTED 1 /* for SHARP_LED_ACSTATUS */
94
95#define LED_RSSI_OUT 0 /* for SHARP_LED_PHONE_RSSI */
96#define LED_RSSI_IN 1 /* for SHARP_LED_PHONE_RSSI */
97
98#define LED_DIAL_OFF 0 /* for SHARP_LED_PHONE_DIAL */
99#define LED_DIAL_DIALING 1 /* for SHARP_LED_PHONE_DIAL */
100#define LED_DIAL_HOLDING 2 /* for SHARP_LED_PHONE_DIAL */
101
102#define LED_PHONE_WAITING 0 /* for SHARP_LED_PHONE_IN */
103#define LED_PHONE_INCOMING 1 /* for SHARP_LED_PHONE_IN */
104
105#define LED_MAIL_NO_UNREAD_MAIL 0 /* for SHARP_LED_MAIL_EXISTS */
106#define LED_MAIL_NEWMAIL_EXISTS 1 /* for SHARP_LED_MAIL_EXISTS */
107#define LED_MAIL_UNREAD_MAIL_EX 2 /* for SHARP_LED_MAIL_EXISTS */
108
109#define LED_SENDMAIL_OFF 0 /* for SHARP_LED_MAIL_SEND */
110#define LED_SENDMAIL_SENDING 1 /* for SHARP_LED_MAIL_SEND */
111#define LED_SENDMAIL_ERROR 2 /* for SHARP_LED_MAIL_SEND */
112
113#define LED_MAILQUEUE_NOUNREAD 0 /* for SHARP_LED_MAIL_QUEUE */
114#define LED_MAILQUEUE_NEWMAIL 1 /* for SHARP_LED_MAIL_QUEUE */
115#define LED_MAILQUEUE_UNREAD 2 /* for SHARP_LED_MAIL_QUEUE */
116
117 #define LED_COLLIE_0_DEFAULT 0 /* for SHARP_LED_COLLIE_0 */
118#define LED_COLLIE_0_OFF 1 /* for SHARP_LED_COLLIE_0 */
119 #define LED_COLLIE_0_ON 2 /* for SHARP_LED_COLLIE_0 */
120 #define LED_COLLIE_0_FASTBLINK 3 /* for SHARP_LED_COLLIE_0 */
121 #define LED_COLLIE_0_SLOWBLINK 4 /* for SHARP_LED_COLLIE_0 */
122
123
124#define LED_COLLIE_1_DEFAULT 0 /* for SHARP_LED_COLLIE_1 */
125#define LED_COLLIE_1_OFF 1 /* for SHARP_LED_COLLIE_1 */
126#define LED_COLLIE_1_ON 2 /* for SHARP_LED_COLLIE_1 */
127#define LED_COLLIE_1_FLASHON 3 /* for SHARP_LED_COLLIE_1 */
128#define LED_COLLIE_1_FLASHOFF 4 /* for SHARP_LED_COLLIE_1 */
129#define LED_COLLIE_1_VFSTBLINK 5 /* for SHARP_LED_COLLIE_1 */
130#define LED_COLLIE_1_FASTBLINK 6 /* for SHARP_LED_COLLIE_1 */
131#define LED_COLLIE_1_NORMBLINK 7 /* for SHARP_LED_COLLIE_1 */
132#define LED_COLLIE_1_SLOWBLINK 8 /* for SHARP_LED_COLLIE_1 */
133#define LED_COLLIE_1_SOFTBLINK 9 /* for SHARP_LED_COLLIE_1 */
134#define LED_COLLIE_1_SOFTFLASH 10 /* for SHARP_LED_COLLIE_1 */
135
136/* --- for SHARP_BUZZER device --- */
137 #defineSHARP_BUZZER_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START)
138#define SHARP_BUZZER_MAKESOUND (SHARP_BUZZER_IOCTL_START)
139#define SHARP_BUZZER_SETVOLUME (SHARP_BUZZER_IOCTL_START+1)
140#define SHARP_BUZZER_GETVOLUME (SHARP_BUZZER_IOCTL_START+2)
141#define SHARP_BUZZER_ISSUPPORTED (SHARP_BUZZER_IOCTL_START+3)
142#define SHARP_BUZZER_SETMUTE (SHARP_BUZZER_IOCTL_START+4)
143#define SHARP_BUZZER_STOPSOUND (SHARP_BUZZER_IOCTL_START+5)
144
145typedef struct sharp_buzzer_status { /* this struct is used for setvolume/getvolume */
146 int which; /* select which LED status is wanted. */
147 int volume; /* set new buzzer volume if you call SHARP_BUZZER_SETVOLUME */
148 int mute; /* set 1 to MUTE if you call SHARP_BUZZER_SETMUTE */
149} sharp_buzzer_status;
150
151#define SHARP_BUZ_WHICH_MAX 14 /* last number of buzzer */
152
153#define SHARP_BUZ_ALL_SOUNDS -1 /* for setting volumes of ALL sounds at a time */
154
155#define SHARP_BUZ_WRITESOUND 0 /* for sound datas through 'write' calls */
156#define SHARP_BUZ_TOUCHSOUND 1 /* touch panel sound */
157#define SHARP_BUZ_KEYSOUND 2 /* key sound */
158#define SHARP_PDA_ILLCLICKSOUND 3 /* illegal click */
159#define SHARP_PDA_WARNSOUND 4 /* warning occurred */
160#define SHARP_PDA_ERRORSOUND 5 /* error occurred */
161#define SHARP_PDA_CRITICALSOUND 6 /* critical error occurred */
162#define SHARP_PDA_SYSSTARTSOUND 7 /* system start */
163#define SHARP_PDA_SYSTEMENDSOUND 8 /* system shutdown */
164#define SHARP_PDA_APPSTART 9 /* application start */
165#define SHARP_PDA_APPQUIT 10 /* application ends */
166#define SHARP_BUZ_SCHEDULE_ALARM 11 /* schedule alarm */
167#define SHARP_BUZ_DAILY_ALARM 12 /* daily alarm */
168#define SHARP_BUZ_GOT_PHONE_CALL 13 /* phone call sound */
169#define SHARP_BUZ_GOT_MAIL 14 /* mail sound */
170
171#define SHARP_BUZ_VOLUME_OFF 0
172#define SHARP_BUZ_VOLUME_LOW 33
173#define SHARP_BUZ_VOLUME_MEDIUM 67
174#define SHARP_BUZ_VOLUME_HIGH 100 /* currentry , this is the maximum ... */
175#define SHARP_BUZ_VOLUME_MAX (SHARP_BUZ_VOLUME_HIGH)
176
177/* --- for SHARP_GSM device --- */
178 #defineSHARP_GSM_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START)
179#define SHARP_GSM_GETEXTSTATUS (SHARP_GSM_IOCTL_START+16)
180#define SHARP_GSM_INFO_TELL_MODE (SHARP_GSM_IOCTL_START+17)
181
182#define GSM_PHONE_NO_POWER 0 /* for SHARP_GSM_INFO_TELL_MODE */
183#define GSM_PHONE_NO_CONNECTION 1 /* for SHARP_GSM_INFO_TELL_MODE */
184#define GSM_PHONE_IN_ANALOG_MODE 2 /* for SHARP_GSM_INFO_TELL_MODE */
185#define GSM_PHONE_IN_DATA_MODE 3 /* for SHARP_GSM_INFO_TELL_MODE */
186
187typedef struct sharp_gsmext_status {
188 int carkit; /* be set as 1 , if car-kit is connected */
189 int headphone_mic; /* be set as 1 , if head-phone-microphone is inserted */
190} sharp_gsmext_status;
191
192/* --- for SHARP_AUDIOCTL device --- */
193 #defineSHARP_AUDIOCTL_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START)
194 #defineSHARP_AUDIOCTL_ARCH_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START+0x10)
195#define SHARP_IRIS_AUFIL_GETVAL (SHARP_AUDIOCTL_ARCH_IOCTL_START+0)
196#define SHARP_IRIS_AUFIL_SETVAL (SHARP_AUDIOCTL_ARCH_IOCTL_START+1)
197#define SHARP_IRIS_AMP_EXT_ON (SHARP_AUDIOCTL_ARCH_IOCTL_START+2)
198#define SHARP_IRIS_AMP_EXT_OFF (SHARP_AUDIOCTL_ARCH_IOCTL_START+3)
199
200
201#define SHARP_IRIS_AUFIL_FILTERON 0x01 /* Iris AudioCtl Specific. Enable Audio Filter */
202
203/* --- for SHARP_AUDIOCTL device --- */
204 #defineSHARP_KBDCTL_IOCTL_START (SHARP_DEV_IOCTL_COMMAND_START)
205#define SHARP_KBDCTL_GETMODIFSTAT (SHARP_KBDCTL_IOCTL_START+0)
206#define SHARP_KBDCTL_TOGGLEMODIFSTAT (SHARP_KBDCTL_IOCTL_START+1)
207#define SHARP_KBDCTL_SETHOLDTH (SHARP_KBDCTL_IOCTL_START+2)
208#define SHARP_KBDCTL_SETHOLDTH_GR (SHARP_KBDCTL_IOCTL_START+3)
209#define SHARP_KBDCTL_HOLDINFO_SETHD (SHARP_KBDCTL_IOCTL_START+4)
210#define SHARP_KBDCTL_HOLDINFO_SETSL (SHARP_KBDCTL_IOCTL_START+5)
211#define SHARP_KBDCTL_HOLDINFO_DELHD (SHARP_KBDCTL_IOCTL_START+6)
212#define SHARP_KBDCTL_HOLDINFO_DELSL (SHARP_KBDCTL_IOCTL_START+7)
213#define SHARP_KBDCTL_HOLDINFO_RESTHD (SHARP_KBDCTL_IOCTL_START+8)
214#define SHARP_KBDCTL_HOLDINFO_RESTSL (SHARP_KBDCTL_IOCTL_START+9)
215#define SHARP_KBDCTL_HOLDINFO_RESTFULL (SHARP_KBDCTL_IOCTL_START+10)
216
217typedef struct sharp_kbdctl_modifstat {
218 int which;
219 int stat;
220} sharp_kbdctl_modifstat;
221
222typedef struct sharp_kbdctl_holdstat {
223 int group;
224 int timeout;
225} sharp_kbdctl_holdstat;
226
227typedef struct sharp_kbdctl_holdcustom {
228 int normal_hardcode;
229 int normal_slcode;
230 int hold_slcode;
231} sharp_kbdctl_holdcustom;
232
233#define SHARP_EXTMODIF_2ND 0x01
234#define SHARP_EXTMODIF_CAPS 0x02
235#define SHARP_EXTMODIF_NUMLOCK 0x03
236
237#define HOLDKEY_GROUP_NORMAL 0
238#define HOLDKEY_GROUP_POWER 1
239
240#endif /* __ASM_SHARP_CHAR_H_INCLUDED */
241
diff --git a/noncore/unsupported/mail2/libmail/zaurusstuff.cpp b/noncore/unsupported/mail2/libmail/zaurusstuff.cpp
deleted file mode 100644
index bbf1541..0000000
--- a/noncore/unsupported/mail2/libmail/zaurusstuff.cpp
+++ b/dev/null
@@ -1,38 +0,0 @@
1#include <sys/ioctl.h>
2#include <fcntl.h>
3#include <stdio.h>
4
5#include "zaurusstuff.h"
6#include "sharp_char.h"
7
8ZaurusStuff::ZaurusStuff() : QObject()
9{
10
11}
12
13void ZaurusStuff::blinkLedOn()
14{
15 sharp_led_status st;
16 st.which = SHARP_LED_COLLIE_1;
17 st.status = LED_COLLIE_1_FLASHON;
18 ioctl(open("/dev/sharp_led", O_WRONLY), SHARP_LED_SETSTATUS, &st);
19}
20
21void ZaurusStuff::blinkLedOff()
22{
23 sharp_led_status st;
24 st.which = SHARP_LED_COLLIE_1;
25 st.status = LED_COLLIE_1_DEFAULT;
26 ioctl(open("/dev/sharp_led", O_WRONLY), SHARP_LED_SETSTATUS, &st);
27}
28
29void ZaurusStuff::buzzerOn()
30{
31 ioctl(open("/dev/sharp_buz", O_WRONLY), SHARP_BUZZER_MAKESOUND, 4);
32}
33
34void ZaurusStuff::buzzerOff()
35{
36
37}
38
diff --git a/noncore/unsupported/mail2/libmail/zaurusstuff.h b/noncore/unsupported/mail2/libmail/zaurusstuff.h
deleted file mode 100644
index 33c65da..0000000
--- a/noncore/unsupported/mail2/libmail/zaurusstuff.h
+++ b/dev/null
@@ -1,23 +0,0 @@
1#ifndef ZAURUSSTUFF_H
2#define ZAURUSSTUFF_H
3
4#include <qobject.h>
5
6class ZaurusStuff : public QObject
7{
8 Q_OBJECT
9
10public:
11 static void blinkLedOn();
12 static void blinkLedOff();
13 static void buzzerOn();
14 static void buzzerOff();
15
16protected:
17 ZaurusStuff();
18
19
20};
21
22#endif
23