diff -r aaeeca1f15af -r e8d784ac1a4b inc/screensaver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/inc/screensaver.h Wed Sep 01 12:30:40 2010 +0100 @@ -0,0 +1,86 @@ +/* +* Copyright (c) 2003 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: Main header file for screensaver application. +* +*/ + + + + +#ifndef C_SCREENSAVER_H +#define C_SCREENSAVER_H + +#include + +//For turning display off +#include + +#include + +#include +#include +#include + +// +// class CScreensaverEikDocument +// +class CScreensaverDocument : public CAknDocument + { +public: + /** + * ConstructL + * 2nd phase constructor. + * Perform the second phase construction of a + * CScreensaverDocument object. + */ + void ConstructL(); + /** + * CScreensaverDocument. + * C++ default constructor. + */ + CScreensaverDocument(CEikApplication& aApp); + + /** + * ~CScreensaverDocument + * Destructor. + */ + ~CScreensaverDocument(); +private: + // from CEikDocument + CEikAppUi* CreateAppUiL(); + }; + +// +// CScreensaverApplication +// + +class CScreensaverApplication : public CAknApplication +{ +private: + // from CApaApplication + /** + * From CApaApplication, CreateDocumentL. + * Creates CScreensaverDocument document object. The returned + * pointer in not owned by the CScreensaverApplication object. + * @return A pointer to the created document object. + */ + CApaDocument* CreateDocumentL(); + /** + * From CApaApplication, AppDllUid. + * @return Application's UID (KUidScreensaverApp). + */ + TUid AppDllUid() const; + }; + +#endif // C_SCREENSAVER_H