memspyui/memspywindowserverhelper/inc/MemSpyEngineHelperWindowServerImpl.h
changeset 51 b048e15729d6
parent 44 5db69f4c3d06
child 52 36d60d12b4af
equal deleted inserted replaced
44:5db69f4c3d06 51:b048e15729d6
     1 /*
       
     2 * Copyright (c) 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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef MEMSPYENGINEHELPERWINDOWSERVERIMPL_H
       
    19 #define MEMSPYENGINEHELPERWINDOWSERVERIMPL_H
       
    20 
       
    21 // System includes
       
    22 #include <e32base.h>
       
    23 #include <w32std.h>
       
    24 
       
    25 
       
    26 // User includes
       
    27 #include <memspy/engine/memspyenginehelperwindowserver.h>
       
    28 
       
    29 
       
    30 // Classes referenced
       
    31 
       
    32 
       
    33 NONSHARABLE_CLASS( CMemSpyEngineHelperWindowServerImpl ) : public CBase, public MMemSpyEngineHelperWindowServer
       
    34     {
       
    35 public:
       
    36     IMPORT_C static CMemSpyEngineHelperWindowServerImpl* NewL();
       
    37     virtual ~CMemSpyEngineHelperWindowServerImpl();
       
    38 
       
    39 private:
       
    40     CMemSpyEngineHelperWindowServerImpl();
       
    41     void ConstructL();
       
    42 
       
    43 public: // API
       
    44     IMPORT_C MMemSpyEngineWindowGroupList* WindowGroupListL();
       
    45     IMPORT_C void GetWindowGroupListL( RArray<TMemSpyEngineWindowGroupBasicInfo>& aWindowGroups );
       
    46     IMPORT_C void GetWindowGroupDetailsL( TInt aWindowGroupId, TMemSpyEngineWindowGroupDetails& aWindowGroupDetails );
       
    47     IMPORT_C void SwitchToL( TInt aWindowGroupId );
       
    48 
       
    49 private:
       
    50     RWsSession iWsSession;
       
    51     };
       
    52 
       
    53 
       
    54 
       
    55 
       
    56 NONSHARABLE_CLASS( CMemSpyEngineWindowGroupListImpl ) : public CBase, public MMemSpyEngineWindowGroupList
       
    57     {
       
    58 public:
       
    59     static CMemSpyEngineWindowGroupListImpl* NewLC();
       
    60     virtual ~CMemSpyEngineWindowGroupListImpl();
       
    61     
       
    62 private:
       
    63     CMemSpyEngineWindowGroupListImpl();
       
    64     void ConstructL();
       
    65 
       
    66 public: // API
       
    67     IMPORT_C TInt Count() const;
       
    68     IMPORT_C const TMemSpyEngineWindowGroupBasicInfo& At( TInt aIndex ) const;
       
    69     IMPORT_C TInt ItemIndex( const TMemSpyEngineWindowGroupBasicInfo& aEntry ) const;
       
    70 
       
    71 public: // But not exported
       
    72     void AddItemL( TMemSpyEngineWindowGroupBasicInfo& aItem );
       
    73 
       
    74 public: // From MDesCArray
       
    75     IMPORT_C TInt MdcaCount() const;
       
    76     IMPORT_C TPtrC MdcaPoint( TInt aIndex ) const;
       
    77 
       
    78 private: // Data members
       
    79     RArray<TMemSpyEngineWindowGroupBasicInfo> iItems;
       
    80     };
       
    81 
       
    82 
       
    83 #endif