graphics/wserv/inc/T_DataWindowGroup.h
branchSymbian2
changeset 1 8758140453c0
child 6 c108117318cb
equal deleted inserted replaced
0:e8c1ea2c6496 1:8758140453c0
       
     1 /*
       
     2 * Copyright (c) 2005-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 the License "Symbian Foundation License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if (!defined __T_GRAPHICS_WSERV_WINDOWGROUP_H__)
       
    20 #define __T_GRAPHICS_WSERV_WINDOWGROUP_H__
       
    21 
       
    22 // User Includes
       
    23 #include "T_DataWindowTreeNode.h"
       
    24 
       
    25 
       
    26 /**
       
    27  * Test Active Notification class
       
    28  *
       
    29  */
       
    30 class CT_DataWindowGroup : public CT_DataWindowTreeNode
       
    31 	{
       
    32 public:
       
    33 	/**
       
    34 	* Two phase constructor
       
    35 	*/
       
    36 	static CT_DataWindowGroup*    NewL();
       
    37 
       
    38 	/**
       
    39 	* Public destructor
       
    40 	*/
       
    41 	~CT_DataWindowGroup();
       
    42 
       
    43 	/**
       
    44 	* Return a pointer to the object that the data wraps
       
    45 	*
       
    46 	* \return pointer to the object that the data wraps
       
    47 	*/
       
    48 	virtual TAny*    GetObject()    { return iWindowGroup; }
       
    49 
       
    50 	/**
       
    51 	* Set the object that the data wraps
       
    52 	*
       
    53 	* @param    aObject object that the wrapper is testing
       
    54 	*
       
    55 	*/
       
    56 	virtual void    SetObjectL(TAny* aAny);
       
    57 
       
    58 	/**
       
    59 	* The object will no longer be owned by this
       
    60 	*
       
    61 	* @leave	KErrNotSupported if the the function is not supported
       
    62 	*/
       
    63 	virtual void	DisownObjectL();
       
    64 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
       
    65 
       
    66 protected:
       
    67 	/**
       
    68 	* Protected constructor. First phase construction
       
    69 	*/
       
    70 	CT_DataWindowGroup();
       
    71 
       
    72 
       
    73 	/**
       
    74 	* Second phase construction
       
    75 	*/
       
    76 	void  ConstructL();
       
    77 
       
    78 	virtual RWindowTreeNode*	GetWindowTreeNode() const;
       
    79 
       
    80 
       
    81 private:
       
    82 	/**
       
    83 	* Helper methods
       
    84 	*/
       
    85 	void	DestroyData();
       
    86 	void	DoCmdnewL(const TDesC& aSection);
       
    87 	void	DoCmdDestructor();
       
    88 	void	DoCmdConstructL(const TDesC& aSection);
       
    89 	void	DoCmdConstructChildAppL(const TDesC& aSection);
       
    90 	void	DoCmdAllowProcessToCreateChildWindowGroups(const TDesC& aSection);
       
    91 	void	DoCmdEnableReceiptOfFocus(const TDesC& aSection);
       
    92 	void	DoCmdAutoForeground(const TDesC& aSection);
       
    93 	void	DoCmdSetOrdinalPriorityAdjust(const TDesC& aSection);
       
    94 	void	DoCmdSetOrdinalPositionErr(const TDesC& aSection);
       
    95 	void	DoCmdCaptureKey(const TDesC& aSection);
       
    96 	void	DoCmdCancelCaptureKey(const TDesC& aSection);
       
    97 	void	DoCmdCaptureKeyUpAndDowns(const TDesC& aSection);
       
    98 	void	DoCmdCancelCaptureKeyUpAndDowns(const TDesC& aSection);
       
    99 	void	DoCmdCaptureLongKey(const TDesC& aSection);
       
   100 	void	DoCmdCancelCaptureLongKey(const TDesC& aSection);
       
   101 	void	DoCmdAddPriorityKey(const TDesC& aSection);
       
   102 	void	DoCmdRemovePriorityKey(const TDesC& aSection);
       
   103 	void	DoCmdSetTextCursorL(const TDesC& aSection);
       
   104 	void	DoCmdCancelTextCursor();
       
   105 	void	DoCmdSetOwningWindowGroupL(const TDesC& aSection);
       
   106 	void	DoCmdDefaultOwningWindow();
       
   107 	void	DoCmdSetName(const TDesC& aSection);
       
   108 	void	DoCmdName(const TDesC& aSection);
       
   109 	void	DoCmdIdentifier();
       
   110 	void	DoCmdDisableKeyClick(const TDesC& aSection);
       
   111 	void	DoCmdEnableScreenChangeEvents();
       
   112 	void	DoCmdDisableScreenChangeEvents();
       
   113 	void	DoCmdSimulatePointerEvent(const TDesC& aSection);
       
   114 	void	DoCmdSetChildGroupL(const TDesC& aSection);
       
   115 	void	DoCmdClearChildGroup();
       
   116 
       
   117 private:
       
   118 	RWindowGroup*	iWindowGroup;
       
   119 	TInt32			iCaptureKeyHandle;
       
   120 	};
       
   121 
       
   122 #endif /* __T_GRAPHICS_WSERV_WINDOWGROUP_H__ */