homesync/contentmanager/mediaservant/src/msapp.cpp
branchIOP_Improvements
changeset 40 08b5eae9f9ff
parent 39 6369bfd1b60d
child 41 b4d83ea1d6e2
equal deleted inserted replaced
39:6369bfd1b60d 40:08b5eae9f9ff
     1 /*
       
     2 * Copyright (c) 2007 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:  CMediaServantApp class implementation
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <eikstart.h>
       
    20 #include "msdebug.h"
       
    21 #include "msapp.h"
       
    22 #include "msdocument.h"
       
    23 #include "msconstants.h"
       
    24 
       
    25 
       
    26 // ======== MEMBER FUNCTIONS ========
       
    27 
       
    28 // ---------------------------------------------------------
       
    29 // CMediaServantApp::CreateDocumentL()
       
    30 // ---------------------------------------------------------
       
    31 //
       
    32 CApaDocument* CMediaServantApp::CreateDocumentL()
       
    33     {
       
    34     LOG(_L("[MediaServant]\t CMediaServantApp::CreateDocumentL"));
       
    35         
       
    36     return CMSDocument::NewL( *this );
       
    37     }
       
    38 
       
    39 // ---------------------------------------------------------
       
    40 // CMediaServantApp::AppDllUid()
       
    41 // ---------------------------------------------------------
       
    42 //
       
    43 TUid CMediaServantApp::AppDllUid() const
       
    44     {
       
    45     LOG(_L("[MediaServant]\t CMediaServantApp::AppDllUid"));
       
    46     
       
    47     return KUidMediaServant;
       
    48     }
       
    49 
       
    50 
       
    51 // ================= OTHER EXPORTED FUNCTIONS ==============
       
    52 
       
    53 // ---------------------------------------------------------
       
    54 // NewApplication() 
       
    55 // ---------------------------------------------------------
       
    56 //
       
    57 LOCAL_C CApaApplication* NewApplication()
       
    58     {
       
    59     LOG(_L("[MediaServant]\t CApaApplication* NewApplication"));    
       
    60     
       
    61     return new CMediaServantApp;
       
    62     }
       
    63 
       
    64 // ---------------------------------------------------------------------------
       
    65 // Starts application
       
    66 // ---------------------------------------------------------------------------
       
    67 //
       
    68 GLDEF_C TInt E32Main()
       
    69     {
       
    70     LOG(_L("[MediaServant]\t E32Main"));    
       
    71     
       
    72     return EikStart::RunApplication( NewApplication );
       
    73     }
       
    74 
       
    75 
       
    76 // End of File  
       
    77