homesync/contentmanager/mediaservant/src/msapp.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:52:00 +0200
changeset 0 7f85d04be362
permissions -rw-r--r--
Revision: 200947 Kit: 200951

/*
* 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