ncdengine/debuglogger/inc/catalogsloggerappview.h
changeset 0 ba25891c3a9e
equal deleted inserted replaced
-1:000000000000 0:ba25891c3a9e
       
     1 /*
       
     2 * Copyright (c) 2006 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:   ?description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_CATALOGSLOGGERAPPVIEW_H
       
    20 #define C_CATALOGSLOGGERAPPVIEW_H
       
    21 
       
    22 #include <coecntrl.h>
       
    23 #include <aknsettingitemlist.h>
       
    24 
       
    25 #include "catalogslogger.hrh"
       
    26 
       
    27 
       
    28 class CCatalogsLoggerSettingList : public CAknSettingItemList
       
    29    {
       
    30 public:
       
    31       
       
    32    CAknSettingItem* CreateSettingItemL( TInt aIdentifier );
       
    33    void EditItemL( TInt aIndex, TBool aCalledFromMenu ) ;
       
    34  
       
    35 private:
       
    36 
       
    37    TBool iFlags[ENrOfCatalogsLoggerSettings];   // One flag for each setting                                                
       
    38 
       
    39    };
       
    40 
       
    41 
       
    42 class CCatalogsLoggerAppView : public CCoeControl
       
    43     {
       
    44 public:
       
    45     static CCatalogsLoggerAppView* NewL(const TRect& aRect);
       
    46     static CCatalogsLoggerAppView* NewLC(const TRect& aRect);
       
    47      ~CCatalogsLoggerAppView();
       
    48 
       
    49 public:  // from CCoeControl
       
    50     void Draw(const TRect& aRect) const;
       
    51     TKeyResponse OfferKeyEventL( const TKeyEvent &aKeyEvent, TEventCode aType );
       
    52 
       
    53     void SetLoggerStatus( TBool aStatus );
       
    54     void SetLoggerNumber( TInt aNumber, TInt aOffset );
       
    55     void SetLoggerDrive( TInt aDrive );
       
    56     void SetData( TPtrC8 aData );
       
    57 
       
    58 private:    //From CCoeControl
       
    59     TInt CountComponentControls() const;
       
    60     CCoeControl* ComponentControl( TInt aIndex ) const;
       
    61     void SizeChanged();
       
    62 
       
    63 
       
    64 private:
       
    65     void ConstructL(const TRect& aRect);
       
    66     CCatalogsLoggerAppView();
       
    67 
       
    68 private:
       
    69     CCatalogsLoggerSettingList* iSettingsView;
       
    70 
       
    71     TBool iLoggerStatus;
       
    72     TInt iLoggerNumber;
       
    73     TInt iLoggerOffset;
       
    74     TInt iLoggerDrive;
       
    75     HBufC* iData;
       
    76 
       
    77     };
       
    78 
       
    79 
       
    80 
       
    81 #endif // C_CATALOGSLOGGERAPPVIEW_H