remotemgmt_plat/syncml_ds_error_reporting_api/tsrc/SyncStatusSpy/src/SyncStatusSpyApplication.cpp
branchRCL_3
changeset 26 19bba8228ff0
parent 11 06f47423ecee
equal deleted inserted replaced
25:b183ec05bd8c 26:19bba8228ff0
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 #include "SyncStatusSpyApplication.h"
       
    19 #include "SyncStatusSpyDocument.h"
       
    20 #ifdef EKA2
       
    21 #include <eikstart.h>
       
    22 #endif
       
    23 
       
    24 /**
       
    25  * @brief Returns the application's UID (override from CApaApplication::AppDllUid())
       
    26  * @return UID for this application (KUidSyncStatusSpyApplication)
       
    27  */
       
    28 TUid CSyncStatusSpyApplication::AppDllUid() const
       
    29 	{
       
    30 	return KUidSyncStatusSpyApplication;
       
    31 	}
       
    32 
       
    33 /**
       
    34  * @brief Creates the application's document (override from CApaApplication::CreateDocumentL())
       
    35  * @return Pointer to the created document object (CSyncStatusSpyDocument)
       
    36  */
       
    37 CApaDocument* CSyncStatusSpyApplication::CreateDocumentL()
       
    38 	{
       
    39 	return CSyncStatusSpyDocument::NewL( *this );
       
    40 	}
       
    41 
       
    42 #ifdef EKA2
       
    43 
       
    44 /**
       
    45  *	@brief Called by the application framework to construct the application object
       
    46  *  @return The application (CSyncStatusSpyApplication)
       
    47  */	
       
    48 LOCAL_C CApaApplication* NewApplication()
       
    49 	{
       
    50 	return new CSyncStatusSpyApplication;
       
    51 	}
       
    52 
       
    53 /**
       
    54 * @brief This standard export is the entry point for all Series 60 applications
       
    55 * @return error code
       
    56  */	
       
    57 GLDEF_C TInt E32Main()
       
    58 	{
       
    59 	return EikStart::RunApplication( NewApplication );
       
    60 	}
       
    61 	
       
    62 #else 	// Series 60 2.x main DLL program code
       
    63 
       
    64 /**
       
    65 * @brief This standard export constructs the application object.
       
    66 * @return The application (CSyncStatusSpyApplication)
       
    67 */
       
    68 EXPORT_C CApaApplication* NewApplication()
       
    69 	{
       
    70 	return new CSyncStatusSpyApplication;
       
    71 	}
       
    72 
       
    73 /**
       
    74 * @brief This standard export is the entry point for all Series 60 applications
       
    75 * @return error code
       
    76 */
       
    77 GLDEF_C TInt E32Dll(TDllReason /*reason*/)
       
    78 	{
       
    79 	return KErrNone;
       
    80 	}
       
    81 
       
    82 #endif // EKA2