bluetoothengine/btui/Ecom/inc/BTUIViewsCommonUtils.h
branchRCL_3
changeset 56 9386f31cc85b
parent 0 f63038272f30
equal deleted inserted replaced
55:613943a21004 56:9386f31cc85b
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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 BTUIVIEWSCOMMONUTILS_H
       
    19 #define BTUIVIEWSCOMMONUTILS_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 class CBTEngSettings;
       
    24 /**
       
    25 * Utils class which offer common functions that were used by all BTUI views
       
    26 */
       
    27 class TBTUIViewsCommonUtils 
       
    28     {
       
    29     public:
       
    30 
       
    31         /**
       
    32         * Displays a general error note.
       
    33         *
       
    34         * @param None.
       
    35         * @return None.
       
    36         */
       
    37         static void ShowGeneralErrorNoteL();                     // Display general error note
       
    38         
       
    39         /** Check if there are any bluetooth connections. 
       
    40          *@param None
       
    41          *@return ETrue if there is one or more connections.
       
    42          */
       
    43 		static TBool IsAnyDeviceConnectedL();
       
    44 		
       
    45 		/** Asks user to turn on bluetooth is it it not on.		
       
    46 		* @param aBtEngSettings settings object used to turn on the bt.
       
    47 		* @param aCoverDisplayEnabled. True if cover display is enabled.
       
    48 		* @return KErrNone, if bluetooth is on, or has turned on. KErrCancel if user said no. System wide errorcode otherwise.
       
    49 		*/
       
    50 		static TInt TurnBTOnIfNeededL(CBTEngSettings* aBtEngSettings,TBool aCoverDisplayEnabled );		
       
    51  	};
       
    52  	
       
    53 #endif