diff -r 000000000000 -r 7f85d04be362 homesync/contentmanager/mediaservant/src/msapp.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/homesync/contentmanager/mediaservant/src/msapp.cpp Thu Dec 17 08:52:00 2009 +0200 @@ -0,0 +1,77 @@ +/* +* 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 +#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 +