locationsystemui/locationsysui/privacyverifiernotifierui/locprivacyserver/src/locprivacyserverstartup.cpp
changeset 40 16118e24b93b
parent 32 b12ea03c50a3
equal deleted inserted replaced
33:834e27cad510 40:16118e24b93b
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
    19 #include "locprivacyserverstartup.h"
    19 #include "locprivacyserverstartup.h"
    20 #include "locprivacyserver.h"
    20 #include "locprivacyserver.h"
    21 #include "locprivacycommon.h"
    21 #include "locprivacycommon.h"
       
    22 #include "locutilsdebug.h"
    22 
    23 
    23 // ============================ MEMBER FUNCTIONS ===============================
    24 // ============================ MEMBER FUNCTIONS ===============================
    24 
    25 
    25 // -----------------------------------------------------------------------------
    26 // -----------------------------------------------------------------------------
    26 // LocPrivacyServerStartup::StartServer
    27 // LocPrivacyServerStartup::StartServer
    28 // (other items were commented in a header).
    29 // (other items were commented in a header).
    29 // -----------------------------------------------------------------------------
    30 // -----------------------------------------------------------------------------
    30 //
    31 //
    31 TInt LocPrivacyServerStartup::StartServer()
    32 TInt LocPrivacyServerStartup::StartServer()
    32     {
    33     {
       
    34     LOCUTILSDEBUG( "+LocPrivacyServerStartup::StartServer" )
    33     __UHEAP_MARK;
    35     __UHEAP_MARK;
    34 
    36 
    35     CTrapCleanup* cleanupStack = CTrapCleanup::New();
    37     CTrapCleanup* cleanupStack = CTrapCleanup::New();
    36 
    38 
    37     TInt ret = KErrNoMemory;
    39     TInt ret = KErrNoMemory;
    42         delete cleanupStack;
    44         delete cleanupStack;
    43         }
    45         }
    44 
    46 
    45     __UHEAP_MARKEND;
    47     __UHEAP_MARKEND;
    46 
    48 
       
    49     LOCUTILSDEBUG( "-LocPrivacyServerStartup::StartServer" )
    47     return ret;
    50     return ret;
    48     }
    51     }
    49 
    52 
    50 // -----------------------------------------------------------------------------
    53 // -----------------------------------------------------------------------------
    51 // LocPrivacyServerStartup::StartServerL
    54 // LocPrivacyServerStartup::StartServerL
    53 // (other items were commented in a header).
    56 // (other items were commented in a header).
    54 // -----------------------------------------------------------------------------
    57 // -----------------------------------------------------------------------------
    55 //
    58 //
    56 void LocPrivacyServerStartup::StartServerL()
    59 void LocPrivacyServerStartup::StartServerL()
    57     {
    60     {
       
    61     LOCUTILSDEBUG( "+LocPrivacyServerStartup::StartServerL" )
    58     // Rename thread to aid debugging
    62     // Rename thread to aid debugging
    59     User::LeaveIfError(User::RenameThread(KLocPrivacyServerName));
    63     User::LeaveIfError(User::RenameThread(KLocPrivacyServerName));
    60 
    64 
    61     // start scheduler and server
    65     // start scheduler and server
    62     CActiveScheduler* scheduler = new(ELeave) CActiveScheduler;
    66     CActiveScheduler* scheduler = new(ELeave) CActiveScheduler;
    72 
    76 
    73     CActiveScheduler::Start();
    77     CActiveScheduler::Start();
    74 
    78 
    75     delete server;
    79     delete server;
    76     delete scheduler;
    80     delete scheduler;
       
    81    LOCUTILSDEBUG( "-LocPrivacyServerStartup::StartServerL" )
    77     }
    82     }
    78 
    83 
    79 // -----------------------------------------------------------------------------
    84 // -----------------------------------------------------------------------------
    80 // E32Main
    85 // E32Main
    81 // Server process entry-point
    86 // Server process entry-point