inc/screensaver.h
branchRCL_3
changeset 22 aaeeca1f15af
parent 21 724d4ec22f0d
child 23 e8d784ac1a4b
equal deleted inserted replaced
21:724d4ec22f0d 22:aaeeca1f15af
     1 /*
       
     2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:     Main header file for screensaver application.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef C_SCREENSAVER_H
       
    22 #define C_SCREENSAVER_H
       
    23 
       
    24 #include <e32base.h>
       
    25 
       
    26 //For turning display off
       
    27 #include <hal.h>
       
    28 
       
    29 #include <centralrepository.h>
       
    30 
       
    31 #include <aknapp.h>
       
    32 #include <AknDoc.h>
       
    33 #include <apgwgnam.h>
       
    34 
       
    35 //
       
    36 // class CScreensaverEikDocument
       
    37 //
       
    38 class CScreensaverDocument : public CAknDocument
       
    39 	{
       
    40 public:
       
    41     /**
       
    42     * ConstructL
       
    43     * 2nd phase constructor.
       
    44     * Perform the second phase construction of a
       
    45     * CScreensaverDocument object.
       
    46     */
       
    47     void ConstructL();
       
    48     /**
       
    49     * CScreensaverDocument.
       
    50     * C++ default constructor.
       
    51     */
       
    52     CScreensaverDocument(CEikApplication& aApp);
       
    53 
       
    54     /**
       
    55     * ~CScreensaverDocument 
       
    56     * Destructor.
       
    57     */
       
    58     ~CScreensaverDocument();
       
    59 private:
       
    60     // from CEikDocument
       
    61     CEikAppUi* CreateAppUiL();
       
    62     };
       
    63 
       
    64 //
       
    65 // CScreensaverApplication
       
    66 //
       
    67 
       
    68 class CScreensaverApplication : public CAknApplication
       
    69 {
       
    70 private:
       
    71     // from CApaApplication
       
    72     /**
       
    73     * From CApaApplication, CreateDocumentL.
       
    74     * Creates CScreensaverDocument document object. The returned
       
    75     * pointer in not owned by the CScreensaverApplication object.
       
    76     * @return A pointer to the created document object.
       
    77     */
       
    78     CApaDocument* CreateDocumentL();
       
    79     /**
       
    80     * From CApaApplication, AppDllUid.
       
    81     * @return Application's UID (KUidScreensaverApp).
       
    82     */
       
    83     TUid AppDllUid() const;
       
    84     };
       
    85 
       
    86 #endif // C_SCREENSAVER_H