phonebookui/Phonebook2/ccapplication/ccapp/ccapputil/inc/ccappstatuscontrol.h
branchRCL_3
changeset 23 5586b4d2ec3e
parent 3 04ab22b956c2
child 45 34879f5cfc63
equal deleted inserted replaced
21:b3431bff8c19 23:5586b4d2ec3e
    48 };
    48 };
    49 
    49 
    50 /**
    50 /**
    51  * Class implements the status control
    51  * Class implements the status control
    52  *
    52  *
    53  *  @lib ccapputil.dll
    53  *  @lib ccapputil.lib
    54  *  @since S60 9.2
    54  *  @since S60 9.2
    55  */
    55  */
    56 NONSHARABLE_CLASS( CCCAppStatusControl ) : 
    56 NONSHARABLE_CLASS( CCCAppStatusControl ) : 
    57     public CCoeControl, 
    57     public CCoeControl, 
    58     public MSpbContentProviderObserver 
    58     public MSpbContentProviderObserver 
    59     {
    59     {
    60 public: // Construction & destruction
    60 public: // Construction & destruction
    61     /**
    61     /**
    62      * Two-phased constructor.
    62      * Two-phased constructor.
    63      */
    63      */
    64 	IMPORT_C static CCCAppStatusControl* NewL( CSpbContentProvider& aContentProvider, MCCAStatusControlObserver& aObserver );
    64     IMPORT_C static CCCAppStatusControl* NewL( 
       
    65             CSpbContentProvider& aContentProvider, 
       
    66             MCCAStatusControlObserver& aObserver );
    65 
    67 
    66     /**
    68     /**
    67      * Destructor.
    69      * Destructor.
    68      */
    70      */
    69     ~CCCAppStatusControl();
    71     ~CCCAppStatusControl();
    73     /**
    75     /**
    74 	 * Sets the link object 
    76 	 * Sets the link object 
    75 	 * 
    77 	 * 
    76 	 * @aLink Link to current contact
    78 	 * @aLink Link to current contact
    77 	 */
    79 	 */
    78      IMPORT_C void SetContactLinkL( MVPbkContactLink& aLink );
    80     IMPORT_C void SetContactLinkL( 
       
    81             MVPbkContactLink& aLink );
    79 
    82 
    80     /**
    83     /**
    81      * Change buttons state between pressed and released.
    84      * Change buttons state between pressed and released.
    82      * 
    85      * 
    83      * @param aPressed ETrue to make the button pressed
    86      * @param aPressed ETrue to make the button pressed
    84      */
    87      */
    85     void SetPressed( TBool aPressed );
    88     void SetPressed( TBool aPressed );
    86     
       
    87     /**
       
    88      * Check if button is pressed down
       
    89      * 
       
    90      * @return ETrue if button is pressed
       
    91      */
       
    92     TBool IsPressed();
       
    93      
    89      
    94      /**
    90     /**
    95 	 * Set the default status icon 
    91      * Set the default status icon 
    96 	 * 	 
    92 	 * 	 
    97 	 * @aDefaultStatusIcon Default status icon
    93 	 * @aDefaultStatusIcon Default status icon
    98 	 */
    94 	 */
    99      IMPORT_C void SetDefaultStatusIconL( CGulIcon* aDefaultStatusIcon );
    95     IMPORT_C void SetDefaultStatusIconL( CGulIcon* aDefaultStatusIcon );
   100      
    96      
   101      /**
    97     /**
   102 	 * Set the default status text 
    98 	 * Set the default status text 
   103 	 * 	 
    99 	 * 	 
   104 	 * @aDefaultStatusText Default status text
   100 	 * @aDefaultStatusText Default status text
   105 	 */
   101 	 */
   106      IMPORT_C void SetDefaultStatusTextL( HBufC* aDefaultStatusText );     
   102     IMPORT_C void SetDefaultStatusTextL( HBufC* aDefaultStatusText );     
   107              
   103              
   108 public: // From CCoeControl
   104 public: // From CCoeControl
   109      
   105      
   110     /**
   106     /**
   111      * From CCoeControl
   107      * From CCoeControl
   122      */
   118      */
   123     void SizeChanged();
   119     void SizeChanged();
   124 
   120 
   125     /**
   121     /**
   126      * From CoeControl
   122      * From CoeControl
   127     */
   123      */
   128     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   124     void HandlePointerEventL( const TPointerEvent& aPointerEvent );
   129 
   125 
   130     /**
   126     /**
   131      * From CoeControl
   127      * From CoeControl
   132     */
   128      */
   133     void SetContainerWindowL( const CCoeControl& aContainer );
   129     void SetContainerWindowL( const CCoeControl& aContainer );
   134     
   130     
   135     /**
   131     /**
   136      * From CoeControl
   132      * From CoeControl
   137      */
   133      */