Multiple File Via Bluetooth and Time spaces!! (Urgent)

Login to reply to this topic.
Sun, 2007-07-29 13:02
Joined: 2007-07-28
Forum posts: 2

Hi all
I'm doing some kind of program that will be able to send multiple files via bluetooth I found a code and it was useful but this code will send files in a row no time spaces between them , I want to modify this program so I will be able to send the first file and wait a period of time then the 2nd one and so on..... is there anyone who can help me with that ??

switch ( aCommand )
{
default:
if (aCommand > Econtext_logCmdSendAppUi) {

CDir* dir;
_LIT(dirname, "c:\\system\\apps\\context_log\\log*.txt");
User::LeaveIfError(fsSession.GetDir(dirname, KEntryAttNormal,
ESortByName, dir));
CleanupStack::PushL(dir);
CDesC16ArrayFlat *array = new (ELeave) CDesC16ArrayFlat(dir->Count());
CleanupStack::PushL(array);
TBuf<256> filen;

for (int i=0; iCount(); i++) {
filen=(TText*)L"c:\\system\\apps\\context_log\\";
filen.Append((*dir)[i].iName);
TEntry fe;
if (fsSession.Entry(filen, fe)==KErrNone && fe.iSize>0) {
array->AppendL(filen);
}
}

sendui->CreateAndSendMessageL (aCommand, 0, array);

CleanupStack::PopAndDestroy(2); // dir, array

}
break;
}

Thank you all Smiling

  • Login to reply to this topic.