3 #include "../../../gsmstate.h" 5 #ifdef GSM_ENABLE_NOKIA3650 10 #include "../../../gsmcomon.h" 11 #include "../../../misc/coding/coding.h" 12 #include "../../../service/gsmlogo.h" 14 #include "../nfuncold.h" 15 #include "../../pfunc.h" 16 #include "../dct4s40/dct4func.h" 36 msg->
Buffer[10]*256*256*256+
48 unsigned int len=10,i;
50 unsigned char StartReq[500] = {
56 unsigned char ContinueReq[] = {
58 0x08, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00};
60 if (File->
Used == 0) {
73 for (i=StartReq[8];i<strlen(File->
ID_FullName);i++) {
74 StartReq[i+10] = StartReq[i+1+10];
92 if (error == GE_EMPTY) {
111 smprintf(s,
"Copying %i to %i, max %i, current %i\n",
119 for (i=0;i<msg->
Buffer[5];i++) {
121 if (msg->
Buffer[pos+2] == 0x01) {
138 unsigned char req[500] = {
164 if (error !=
ERR_NONE)
return error;
198 if (error !=
ERR_NONE)
return error;
216 if (error !=
ERR_NONE)
return error;
218 if (error !=
ERR_NONE)
return error;
222 if (error !=
ERR_NONE)
return error;
224 if (error !=
ERR_NONE)
return error;
227 if (error !=
ERR_NONE)
return error;
237 return N3650_GetFolderInfo(s, File);
245 for (i=0;i<10000;i++) {
257 for (i=0;i<10000;i++) {
258 free(Priv->
Files[i]);
273 {N3650_ReplyGetFolderInfo,
"\x58",0x03,0x0C,
ID_GetFile },
274 {N3650_ReplyGetFilePart,
"\x58",0x03,0x0E,ID_GetFile },
276 {NULL,
"\x00",0x00,0x00,
ID_None }
405 N3650_GetNextFileFolder,
GSM_Error DCT4_SetPhoneMode(GSM_StateMachine *s, DCT4_PHONE_MODE mode)
unsigned char Name[2 *(GSM_MAX_FILENAME_LENGTH+1)]
GSM_Error DCT4_ReplySetPhoneMode(GSM_Protocol_Message *msg, GSM_StateMachine *s)
unsigned char ID_FullName[2 *(GSM_MAX_FILENAME_ID_LENGTH+1)]
char * DecodeUnicodeString(const unsigned char *src)
GSM_Error DCT3DCT4_GetModel(GSM_StateMachine *s)
void CopyUnicodeString(unsigned char *Dest, const unsigned char *Source)
GSM_Error DCT4_Reset(GSM_StateMachine *s, gboolean hard)
GSM_Error GSM_DispatchMessage(GSM_StateMachine *s)
GSM_Error NoneReply(GSM_Protocol_Message *msg UNUSED, GSM_StateMachine *s)
GSM_Error DCT4_GetHardware(GSM_StateMachine *s, char *value)
GSM_Error DCT4_GetIMEI(GSM_StateMachine *s)
GSM_Error DCT4_ReplyGetIMEI(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT3DCT4_GetFirmware(GSM_StateMachine *s)
void EncodeUnicode(unsigned char *dest, const char *src, size_t len)
struct GSM_Phone_Data::@2 Priv
GSM_Error GSM_WaitFor(GSM_StateMachine *s, unsigned const char *buffer, size_t length, int type, int timeout, GSM_Phone_RequestID request)
#define N7110_FRAME_HEADER
GSM_Error NOKIA_ReplyGetPhoneString(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error DCT4_ReplyGetPhoneMode(GSM_Protocol_Message *msg, GSM_StateMachine *s)
GSM_Error NOKIA_GetManufacturer(GSM_StateMachine *s)
GSM_Error DCT4_GetProductCode(GSM_StateMachine *s, char *value)
int smprintf(GSM_StateMachine *s, const char *format,...)
int FilesLocationsCurrent