homesync/contentmanager/mediaservant/src/msapp.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:31:21 +0300
changeset 32 3785f754ee62
parent 0 7f85d04be362
permissions -rw-r--r--
Revision: 201035 Kit: 201037

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  CMediaServantApp class implementation
*
*/


#include <eikstart.h>
#include "msdebug.h"
#include "msapp.h"
#include "msdocument.h"
#include "msconstants.h"


// ======== MEMBER FUNCTIONS ========

// ---------------------------------------------------------
// CMediaServantApp::CreateDocumentL()
// ---------------------------------------------------------
//
CApaDocument* CMediaServantApp::CreateDocumentL()
    {
    LOG(_L("[MediaServant]\t CMediaServantApp::CreateDocumentL"));
        
    return CMSDocument::NewL( *this );
    }

// ---------------------------------------------------------
// CMediaServantApp::AppDllUid()
// ---------------------------------------------------------
//
TUid CMediaServantApp::AppDllUid() const
    {
    LOG(_L("[MediaServant]\t CMediaServantApp::AppDllUid"));
    
    return KUidMediaServant;
    }


// ================= OTHER EXPORTED FUNCTIONS ==============

// ---------------------------------------------------------
// NewApplication() 
// ---------------------------------------------------------
//
LOCAL_C CApaApplication* NewApplication()
    {
    LOG(_L("[MediaServant]\t CApaApplication* NewApplication"));    
    
    return new CMediaServantApp;
    }

// ---------------------------------------------------------------------------
// Starts application
// ---------------------------------------------------------------------------
//
GLDEF_C TInt E32Main()
    {
    LOG(_L("[MediaServant]\t E32Main"));    
    
    return EikStart::RunApplication( NewApplication );
    }


// End of File