dcmofw/dcmoserver/inc/dcmomessagebox.h
branchRCL_3
changeset 25 b183ec05bd8c
equal deleted inserted replaced
24:13d7c31c74e0 25:b183ec05bd8c
       
     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:  DCMO Message Box
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __DCMO_MESSAGEBOX_H__
       
    19 #define __DCMO_MESSAGEBOX_H__
       
    20 
       
    21 // INCLUDES
       
    22 
       
    23 #include <hbdevicemessageboxsymbian.h>
       
    24 
       
    25 /**
       
    26 * Message Box class to show the global note.
       
    27 *
       
    28 */
       
    29 class CDCMOMessageBox : public CBase, public MHbDeviceMessageBoxObserver
       
    30 	{
       
    31 public:
       
    32     static CDCMOMessageBox* NewL( );
       
    33     
       
    34   /**
       
    35 	 * Destructor
       
    36 	 */
       
    37 		~CDCMOMessageBox();
       
    38 		
       
    39 	/**
       
    40 	 * Show the Notification
       
    41 	 * @param aString , to be shown
       
    42 	 * @return 
       
    43 	 */
       
    44 		void ShowMessageL( TDesC& aString );
       
    45 		
       
    46 public: // from MHbDeviceMessageBoxObserver
       
    47     void MessageBoxClosed(const CHbDeviceMessageBoxSymbian *aMessageBox,
       
    48         CHbDeviceMessageBoxSymbian::TButtonId aButton);
       
    49 		
       
    50 		/**
       
    51 	 * Gets the Message Box status
       
    52 	 * @param None
       
    53 	 * @return ETrue if the user pressed ok button, else EFalse.
       
    54 	 */
       
    55 		static TBool IsMsgBoxClosed();
       
    56 		
       
    57 		/**
       
    58 	 * Sets the Message Box status
       
    59 	 * @param ETrue if the user pressed ok button, else EFalse.
       
    60 	 * @return None
       
    61 	 */
       
    62 		static void SetMsgBoxStatus(TBool aStatus);
       
    63 		
       
    64 private:  
       
    65 	/**
       
    66 	 * Createss CDCMOMessageBox
       
    67 	 * Default Constructor
       
    68 	 */  
       
    69 		CDCMOMessageBox( );		
       
    70 
       
    71 private:		
       
    72 		CHbDeviceMessageBoxSymbian* iMessageBox;
       
    73 		static TBool iMsgBoxClosed;
       
    74 	};
       
    75 #endif //__DCMO_MESSAGEBOX_H__