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25 * $B<T$OIi$o$J$$$b$N$H$7$^$9!#$3$l$K9g0U$G$-$J$$>l9g$O!";HMQ8"$,$J$$$b(B 26 * $B$N$H$7$^$9!#(B 27 * 7. $B!H(BEmi Clock$B!I$N>&I8$*$h$SK\%=%U%H%&%'%"$N2hA|$d%G%6%$%s$K4X$9$kCx:n(B 28 * $B8"$O!"(BMotosoft $B$3$H!HK\(B $B=SLi!I;a$,M-$7$^$9!#(B 29 * 8. $B!H(BEmi Clock$B!I$N>&I8$*$h$S2hA|$d%G%6%$%s$O!"(BX11$BHG(B Emi Clock $B3+H/$N$?(B 30 * $B$a!"(BMotosoft $B$h$j!H8E>l(B $B@59T!I$X8D?ME*$K%i%$%;%s%96!M?$5$l$F$^$9!#(B 31 * $BBh;0<T$XFs<!%i%$%;%s%96!M?$9$k$3$H$OG'$a$i$l$F$*$j$^$;$s!#(B 32 * 9. Motosoft $B$H8E>l$KL5CG$G!"K\%=%U%H%&%'%"$N2hA|%G!<%?$rFs<!MxMQ$9$k$3(B 33 * $B$H$r6X;_$7$^$9!#(B 34 * 10. $B$3$3$K5-=R$7$?0J30$N8"Mx$K$D$$$F$O!"F|K\9q$NCx:n8"K!$K$h$k$b$N$H$7(B 35 * $B$^$9!#(B 36 */ 37 38 #ifndef _EMI_TYPES_H_ 39 #define _EMI_TYPES_H_ 40 41 42 /* 43 * $B%T%/%;%k05=L%$%a!<%8(B 44 */ 45 typedef struct { 46 unsigned int width, height; 47 int numOfPalettes; /* $B%Q%l%C%H?t(B */ 48 unsigned char *paletteColor; /* RGBRGB... */ 49 unsigned char *pixel; /* $B05=L$5$l$?%T%/%;%kCM(B */ 50 } PixelImage; 51 52 53 /* 54 * $B%S%C%H%^%C%W$N%F!<%V%k(B 55 */ 56 typedef struct { 57 unsigned int width, height; 58 char *bits; 59 } BitmapTable; 60 61 62 /* 63 * $B%+%i!<%^%C%W$+$i(B Alloc $B$7$?%+%i!<%;%k$N%T%/%;%kCM(B 64 */ 65 typedef struct { 66 unsigned long pixel; 67 Boolean isAlloc; 68 } AllocPixel; 69 70 71 /* 72 * $B%"%W%j%1!<%7%g%s%G!<%?9=B$BN(B 73 */ 74 typedef struct { 75 Boolean isNoSave; /* $HOME/.emiclockrc $B$rJ]B8$7$J$$(B */ 76 Boolean isNoStartupSound; /* $B5/F02;!V$_$e$C!*!W$,$J$$!)(B */ 77 Boolean isNoSoundCache; /* $B%5%&%s%I$r%-%c%C%7%e2=$7$J$$!)(B */ 78 Boolean isNoShape; /* Shape Extension $B$,$J$$!)(B */ 79 Boolean isPerfect; /* $B5/F0;~$K%+%i!<%;%k$rA4$F3NJ]!)(B */ 80 Boolean isGrayscale; /* $B%0%l%$%9%1!<%kI=<(!)(B */ 81 Boolean isGray4; /* 4$B?'%0%l%$%9%1!<%kI=<(!)(B */ 82 Boolean isMono; /* $B%b%N%/%mI=<(!)(B */ 83 } AppData, *AppDataPtr; 84 85 86 /* 87 * $B%"%i!<%`;~9o9=B$BN(B 88 */ 89 typedef struct { 90 int year; /* $BG/(B($B@>Nq(B) - 1900 */ 91 int month; /* $B7n(B (1$B!A(B12) */ 92 int date; /* $BF|(B (1$B!A(B31) */ 93 int hour; /* $B;~(B (0$B!A(B23) */ 94 int minute; /* $BJ,(B (0$B!A(B59) */ 95 int second; /* $BIC(B (0$B!A(B59) */ 96 } AlarmTime; 97 98 99 /* 100 * $HOME/.emiclockrc $BJ]B8%G!<%?(B 101 */ 102 typedef struct { 103 Boolean isNoSecond; /* $BIC?KI=<($J$7(B */ 104 Boolean isNoStartupSound; /* $B5/F02;!V$_$e$C!*!W$,$J$$!)(B */ 105 Boolean isHourlyCharChange; /* $B#1;~4V$*$-$KJQ99(B */ 106 Boolean isAnimateCharacter; /* $B#1J,$4$H$KH?E>%"%K%a(B */ 107 int charNo; /* $B%-%c%i%/%?$NHV9f(B */ 108 int cbaseNo; /* $BJ8;zHW$NHV9f(B */ 109 Boolean isHourlyChime; /* 0$BJ,%A%c%$%`$rLD$i$9(B */ 110 Boolean isHalfHourChime; /* 30$BJ,%A%c%$%`$rLD$i$9(B */ 111 Boolean isPlayAlarm; /* $B%"%i!<%`$rLD$i$9(B */ 112 AlarmTime alarmTime; /* $B%"%i!<%`;~9o(B */ 113 Boolean isOneTime; /* $B#12s$@$1DLCN$9$k!)(B */ 114 Boolean isDailyAlarm; /* $BKhF|DLCN$9$k!)(B */ 115 } RcData; 116 117 #endif /* !_EMI_TYPES_H_ */ 118