locationdataharvester/mylocationsengine/src/appmain.cpp
changeset 20 cd10d5b85554
parent 17 0f22fb80ebba
equal deleted inserted replaced
17:0f22fb80ebba 20:cd10d5b85554
    38     CActiveScheduler::Install(scheduler);
    38     CActiveScheduler::Install(scheduler);
    39     
    39     
    40     // create Mylocations engine object
    40     // create Mylocations engine object
    41     CMyLocationsEngine *myLocationsEngine = CMyLocationsEngine::NewL();
    41     CMyLocationsEngine *myLocationsEngine = CMyLocationsEngine::NewL();
    42     CleanupStack::PushL( myLocationsEngine );
    42     CleanupStack::PushL( myLocationsEngine );
    43     // Start listening to calendar db changes
       
    44     //myLocationsEngine->StartCalenderChangeNotifierL();
       
    45 
    43 
    46    
    44     MYLOCLOGSTRING("myLocationsEngine created.");
    47     // Start listening to landmarks db changes
       
    48     //myLocationsEngine->StartLandmarksChangeNotifier();
       
    49 
       
    50     //MYLOCLOGSTRING("Start listening to landmarks db changes.");
       
    51     
    45     
    52     RProcess::Rendezvous(KErrNone);
    46     RProcess::Rendezvous(KErrNone);
    53     // Start handling requests
    47     // Start handling requests
    54     CActiveScheduler::Start();
    48     CActiveScheduler::Start();
    55 
    49 
    63 // Execute()
    57 // Execute()
    64 // 
    58 // 
    65 // -----------------------------------------------------------------------------
    59 // -----------------------------------------------------------------------------
    66 //
    60 //
    67 static TInt Execute()
    61 static TInt Execute()
    68 {
    62 {  
    69    // __UHEAP_MARK;
       
    70     TInt error = KErrNoMemory;
    63     TInt error = KErrNoMemory;
    71     // Create the cleanup stack
    64     // Create the cleanup stack
    72     CTrapCleanup* cleanup = CTrapCleanup::New();
    65     CTrapCleanup* cleanup = CTrapCleanup::New();
    73     if (cleanup)
    66     if (cleanup)
    74     {
    67     {
    75         // Initialize and start the server
    68         // Initialize and start the server
    76         TRAP( error, DoExecuteL() );
    69         TRAP( error, DoExecuteL() );
    77         delete cleanup;
    70         delete cleanup;
    78     }
    71     }
    79    // __UHEAP_MARKEND;
       
    80     return error;
    72     return error;
    81 }
    73 }
    82 
    74 
    83 GLDEF_C TInt E32Main()
    75 GLDEF_C TInt E32Main()
    84 {
    76 {