locationsystemui/locationsysui/possettings/possettingsplugin/inc/possettingspluginhelper.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2010 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:  Positioning settings plugin helper class. 
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef POSITIONINGSETTINGSPLUGIN_HELPER_H
       
    19 #define POSITIONINGSETTINGSPLUGIN_HELPER_H
       
    20 
       
    21 #include <qglobal.h>
       
    22 
       
    23 class PosSettingsPluginHelperPrivate;
       
    24 /**
       
    25  * PosSettingsPluginHelper is a class that provides helper functions:
       
    26  * To check if feature flag is On/Of
       
    27  * To check if any positioning PSY is visible
       
    28  */
       
    29 class PosSettingsPluginHelper
       
    30     {
       
    31 public:
       
    32 
       
    33 
       
    34     /**
       
    35      * Constructor 
       
    36      */
       
    37     PosSettingsPluginHelper();
       
    38 
       
    39     /**
       
    40      * Destructor
       
    41      */
       
    42     ~PosSettingsPluginHelper();
       
    43         
       
    44     /**
       
    45      * Returns whether any position psy is available.
       
    46      * @return true if any position psy is available,
       
    47      *         false if it is not available.
       
    48      */
       
    49     bool isPositionPsyAvailable();
       
    50     
       
    51      /**
       
    52      * Returns whether feature flag is enabled.
       
    53      * @return true if feature flag is enabled,
       
    54      *         false if it is not enabled.
       
    55      */
       
    56     bool isFeatureFlagEnabled();
       
    57     
       
    58 private:      
       
    59     Q_DECLARE_PRIVATE(PosSettingsPluginHelper)
       
    60 protected:
       
    61 		PosSettingsPluginHelperPrivate* const d_ptr;   
       
    62     };
       
    63 
       
    64 
       
    65 #endif /* POSITIONINGSETTINGSPLUGIN_HELPER_H */