mpxmusicplayer/app/src/mpxapp.cpp
changeset 0 ff3acec5bc43
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 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:  Application class required by AVKON application framework.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include <eikstart.h>
       
    21 
       
    22 #include "mpxapp.h"
       
    23 #include "mpxdocument.h"
       
    24 #include <mpxconstants.h>
       
    25 
       
    26 
       
    27 // ======== MEMBER FUNCTIONS ========
       
    28 
       
    29 // ---------------------------------------------------------------------------
       
    30 // Returns application UID
       
    31 // ---------------------------------------------------------------------------
       
    32 //
       
    33 TUid CMPXApp::AppDllUid() const
       
    34     {
       
    35     return KAppUidMusicPlayerX;
       
    36     }
       
    37    
       
    38 // ---------------------------------------------------------------------------
       
    39 // Creates CMPXDocument object
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CApaDocument* CMPXApp::CreateDocumentL()
       
    43     {
       
    44     return CMPXDocument::NewL( *this );
       
    45     }
       
    46 
       
    47 
       
    48 // ======== GLOBAL FUNCTIONS ========
       
    49 
       
    50 // ---------------------------------------------------------------------------
       
    51 // Constructs and returns an application object.
       
    52 // ---------------------------------------------------------------------------
       
    53 //
       
    54 EXPORT_C CApaApplication* NewApplication()
       
    55     {
       
    56     return new CMPXApp;
       
    57     }
       
    58 
       
    59 
       
    60 // ---------------------------------------------------------------------------
       
    61 // Main function of the application executable.
       
    62 // ---------------------------------------------------------------------------
       
    63 //
       
    64 GLDEF_C TInt E32Main()
       
    65     {
       
    66     return EikStart::RunApplication( NewApplication );
       
    67     }
       
    68 
       
    69 // End of File