Hi Jonas,
 
Please ignore the previous mail.
Now as you had guided me previously i am attempting to
delete after specified time like this :
if(cmd == sysAppLaunchCmdNormalLaunch)
{
 error = AppStart();
if (error) 
return error;
FrmGotoForm(MainForm);
AppEventLoop();
AppStop();
}
else if (cmd == sysAppLaunchCmdSyncNotify)
{
 SyncNotification();
}
else if(cmd == sysAppLaunchCmdAlarmTriggered)
{
        DeleteDB();
}

now inside SyncNotification 
{
LocalID                         dbID = 0;
UInt32                          refP;
DateTimePtr             dateTimeP;
DmSearchStateType       state;
long                            alarmTime =0, NewalarmTime =0, oldalarmTime
=0;
Err error =
DmGetNextDatabaseByTypeCreator(true,&state,0,myCreator,true,0,&dbID);

oldalarmTime = AlmGetAlarm(0, dbID, &refP);     
// Clear the pending alarm
AlmSetAlarm(0, dbID, 0, 0, true);
alarmTime =     TimDateTimeToSeconds(dateTimeP);
alarmTime+=60;
// Set the new alarm
AlmSetAlarm (0, dbID, 0, alarmTime, true);
NewalarmTime = AlmGetAlarm(0, dbID, &refP);     
}       

which means it shud delete all the dbs just after 60
seconds of hotsync. but its not happening. Please see
if there is something which i am missing.
Thanks in advance,


> 
> 
>  --- Henk Jonas <[EMAIL PROTECTED]> wrote: >
> ehm,
> set an alarm. It's not that difficult. Your
> > program gets called 
> > after hotsync. Your program sets the alarm. Your
> > program will be called 
> > when the time for this alarm is reached and can
> > delete the database. 
> > What didn't you understand here?
> > 
> > Henk
> > 
> > Rahul Shukla wrote:
> > > Hi,
> > > 
> > > I dont have to delete the database just after
> > hotsync,
> > > coz cmdsyncnotify was serving that purpose.
> > > But after hotsync , suppose i write in one of db
> > the
> > > time of hotsync and also after how many hours to
> > > delete all the db.
> > > Now what shall i use to detect which shall
> remain
> > in
> > > continuous polling mode calculating the time
> > > difference and if acheived delete all the DBs.
> > > 
> > > Regards,
> > > 
> > >  --- Henk Jonas <[EMAIL PROTECTED]> wrote:
> >
> > Have
> > > your palm application get notified won hotsync
> > > 
> > >>by the appropriate 
> > >>launchcode and set an alarm for your
> application.
> > >>When the alarm is 
> > >>triggered, go and delete the database.
> > >>
> > >>Henk
> > >>
> > >>Rahul Shukla wrote:
> > >> ...
> > 
> > 
> > -- 
> >
>
-------------------------------------------------------------------------
> > [EMAIL PROTECTED]                                   
>  
> >  www.metaviewsoft.de
> > 
> > <A
> >
>
HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946";>
> > <IMG
> >
>
SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg";></A>
> >
>
-------------------------------------------------------------------------
> > 
> > 
> > -- 
> > For information on using the Palm Developer
> Forums,
> > or to unsubscribe, please see
> http://www.palmos.com/dev/support/forums/ 
> 
>
________________________________________________________________________
> Missed your favourite TV serial last night? Try the
> new, Yahoo! TV.
>        visit http://in.tv.yahoo.com
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/ 

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to