photosgallery/logging/app/inc/glxloggingappui.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2008-2009 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:    Logging utility application for MC Photos
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __GLXLOGGING_APPUI_H__
       
    22 #define __GLXLOGGING_APPUI_H__
       
    23 
       
    24 #include <aknappui.h>
       
    25 #include <glxlogchunk.h>
       
    26 
       
    27 /** 
       
    28   @class CGlxLoggingAppUi
       
    29   
       
    30   @discussion An instance of class CGlxLoggingAppUi is the UserInterface part of the AVKON
       
    31   application framework for the GlxLogging example application
       
    32   */
       
    33 NONSHARABLE_CLASS( CGlxLoggingAppUi ) : public CAknAppUi
       
    34     {
       
    35     public:
       
    36 
       
    37         /**
       
    38          * @function CGlxLoggingAppUi
       
    39          * 
       
    40          * @discussion Perform the first phase of two phase construction.
       
    41          * This needs to be public due to the way the framework constructs the AppUi 
       
    42          */
       
    43         CGlxLoggingAppUi();
       
    44 
       
    45         /**
       
    46          * @function ~CGlxLoggingAppUi
       
    47          * 
       
    48          * @discussion Destroy the object and release all memory objects
       
    49          */
       
    50         ~CGlxLoggingAppUi();
       
    51 
       
    52         /**
       
    53          * @function ConstructL
       
    54          * 
       
    55          * @discussion Perform the second phase construction of a CGlxLoggingAppUi object
       
    56          * this needs to be public due to the way the framework constructs the AppUi 
       
    57          */
       
    58         void ConstructL();
       
    59 
       
    60     public: // from CAknAppUi
       
    61 
       
    62         /**
       
    63            * @function HandleCommandL
       
    64            *
       
    65            * @discussion Handle user menu selections
       
    66            * @param aCommand the enumerated code for the option selected
       
    67            */
       
    68         void HandleCommandL(TInt aCommand);
       
    69 
       
    70     public: // log writing
       
    71 
       
    72         static TInt TimerCallback( TAny* aParam );
       
    73         TInt DoLog();
       
    74 
       
    75     private: // Data
       
    76 
       
    77         /// Own: log manager
       
    78         RGlxLogManager iLogManager;
       
    79         /// Own: timer for log write
       
    80         CPeriodic* iTimer;
       
    81 
       
    82     };
       
    83 
       
    84 
       
    85 #endif // __GLXLOGGING_APPUI_H__
       
    86