src/Screensaver.cpp
changeset 14 8a173132b0aa
parent 2 058b1fc1663a
equal deleted inserted replaced
2:058b1fc1663a 14:8a173132b0aa
     1 /*
       
     2 * Copyright (c) 2004 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:   Document and application class file for screensaver app.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <eikstart.h>
       
    21 #include "screensaver.hrh"
       
    22 #include "screensaver.h"
       
    23 #include "screensaverappui.h"
       
    24 
       
    25 
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CScreensaverDocument::ConstructL
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 void CScreensaverDocument::ConstructL()
       
    32     {
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 // CScreensaverDocument::CScreensaverDocument
       
    37 // -----------------------------------------------------------------------------
       
    38 //
       
    39 CScreensaverDocument::CScreensaverDocument(CEikApplication& aApp): CAknDocument(aApp) 
       
    40     {
       
    41     }
       
    42 
       
    43 // -----------------------------------------------------------------------------
       
    44 // CScreensaverDocument::~CScreensaverDocument
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 CScreensaverDocument::~CScreensaverDocument()
       
    48     {
       
    49     
       
    50     }
       
    51 
       
    52 //
       
    53 // CScreensaverEikDocument
       
    54 //
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 // CScreensaverDocument::CreateAppUiL
       
    58 // -----------------------------------------------------------------------------
       
    59 //
       
    60 CEikAppUi* CScreensaverDocument::CreateAppUiL()
       
    61     {
       
    62     return ( new (ELeave) CScreensaverAppUi );
       
    63     }
       
    64 
       
    65 
       
    66 //
       
    67 // CScreensaverApplication
       
    68 //
       
    69 // -----------------------------------------------------------------------------
       
    70 // CScreensaverApplication::CreateDocumentL
       
    71 // -----------------------------------------------------------------------------
       
    72 //
       
    73 CApaDocument* CScreensaverApplication::CreateDocumentL()
       
    74     {
       
    75     CScreensaverDocument* document=new(ELeave) CScreensaverDocument(*this);
       
    76     // No need to do ConstructL for document since it is empty.
       
    77     return(document);
       
    78     }
       
    79 
       
    80 // -----------------------------------------------------------------------------
       
    81 // CScreensaverApplication::AppDllUid
       
    82 // -----------------------------------------------------------------------------
       
    83 //
       
    84 TUid CScreensaverApplication::AppDllUid() const
       
    85     {
       
    86     return KUidScreensaverApp;
       
    87     }
       
    88 
       
    89 
       
    90 //
       
    91 // EXPORTed functions
       
    92 //
       
    93 LOCAL_C CApaApplication* NewApplication()
       
    94     {
       
    95     return new CScreensaverApplication;
       
    96     }
       
    97 
       
    98     
       
    99 GLDEF_C TInt E32Main()
       
   100     {
       
   101     return EikStart::RunApplication(NewApplication);
       
   102     }
       
   103 
       
   104 
       
   105 // End of file.