src/Screensaver.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:46:04 +0200
changeset 0 040fcad49f44
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2004 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:   Document and application class file for screensaver app.
*
*/



#include <eikstart.h>
#include "screensaver.hrh"
#include "screensaver.h"
#include "screensaverappui.h"



// -----------------------------------------------------------------------------
// CScreensaverDocument::ConstructL
// -----------------------------------------------------------------------------
//
void CScreensaverDocument::ConstructL()
    {
    }

// -----------------------------------------------------------------------------
// CScreensaverDocument::CScreensaverDocument
// -----------------------------------------------------------------------------
//
CScreensaverDocument::CScreensaverDocument(CEikApplication& aApp): CAknDocument(aApp) 
    {
    }

// -----------------------------------------------------------------------------
// CScreensaverDocument::~CScreensaverDocument
// -----------------------------------------------------------------------------
//
CScreensaverDocument::~CScreensaverDocument()
    {
    
    }

//
// CScreensaverEikDocument
//

// -----------------------------------------------------------------------------
// CScreensaverDocument::CreateAppUiL
// -----------------------------------------------------------------------------
//
CEikAppUi* CScreensaverDocument::CreateAppUiL()
    {
    return ( new (ELeave) CScreensaverAppUi );
    }


//
// CScreensaverApplication
//
// -----------------------------------------------------------------------------
// CScreensaverApplication::CreateDocumentL
// -----------------------------------------------------------------------------
//
CApaDocument* CScreensaverApplication::CreateDocumentL()
    {
    CScreensaverDocument* document=new(ELeave) CScreensaverDocument(*this);
    // No need to do ConstructL for document since it is empty.
    return(document);
    }

// -----------------------------------------------------------------------------
// CScreensaverApplication::AppDllUid
// -----------------------------------------------------------------------------
//
TUid CScreensaverApplication::AppDllUid() const
    {
    return KUidScreensaverApp;
    }


//
// EXPORTed functions
//
LOCAL_C CApaApplication* NewApplication()
    {
    return new CScreensaverApplication;
    }

    
GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication(NewApplication);
    }


// End of file.