locationsystemui/locationsysui/privacyverifiernotifierui/posverificationdialogplugin/inc/posverificationdialogplugin.h
changeset 35 1a92308afc46
parent 32 b12ea03c50a3
equal deleted inserted replaced
33:834e27cad510 35:1a92308afc46
    33 
    33 
    34     /**
    34     /**
    35      * Destrcutor
    35      * Destrcutor
    36      */
    36      */
    37     ~PosVerificationDialogPlugin();
    37     ~PosVerificationDialogPlugin();
    38     
    38 
    39     /**
    39     /**
    40      * Checks if client is allowed use the device dialog that the plugin creates. 
    40      * Checks if client is allowed use the device dialog that the plugin creates. 
    41      * Device dialog service calls this function before creating a device dialog or 
    41      * Device dialog service calls this function before creating a device dialog or 
    42      * attaching into an existing one if flag HbDeviceDialogPlugin::SecurityCheck is set. 
    42      * attaching into an existing one if flag HbDeviceDialogPlugin::SecurityCheck is set. 
    43      * The implementation is operating system dependent. 
    43      * The implementation is operating system dependent. 
    50 
    50 
    51     bool
    51     bool
    52             accessAllowed(const QString &notificationType,
    52             accessAllowed(const QString &notificationType,
    53                     const QVariantMap &parameters,
    53                     const QVariantMap &parameters,
    54                     const QVariantMap &securityInfo) const;
    54                     const QVariantMap &securityInfo) const;
    55     
    55 
    56     /**
    56     /**
    57      * Create a device dialog instance compatible with the version requested. 
    57      * Create a device dialog instance compatible with the version requested. 
    58      * This could always be the latest version if it is backwards compatible with older versions. 
    58      * This could always be the latest version if it is backwards compatible with older versions. 
    59      * Device dialog framework is unaware of version numbers in type strings. It performs string 
    59      * Device dialog framework is unaware of version numbers in type strings. It performs string 
    60      * comparison of the whole string when searching for a plugin
    60      * comparison of the whole string when searching for a plugin
    63      * @returns - HbDeviceDialogInterface, device dialog instance
    63      * @returns - HbDeviceDialogInterface, device dialog instance
    64      */
    64      */
    65 
    65 
    66     HbDeviceDialogInterface *createDeviceDialog(
    66     HbDeviceDialogInterface *createDeviceDialog(
    67             const QString &deviceDialogType, const QVariantMap &parameters);
    67             const QString &deviceDialogType, const QVariantMap &parameters);
    68     
    68 
    69     /**
    69     /**
    70      * Gets information of the device dialog created by the plugin. Device dialog manager calls 
    70      * Gets information of the device dialog created by the plugin. Device dialog manager calls 
    71      * this function before creating the device dialog widget to check HbDeviceDialogPlugin::DeviceDialogGroup, 
    71      * this function before creating the device dialog widget to check HbDeviceDialogPlugin::DeviceDialogGroup, 
    72      * HbDeviceDialogPlugin::DeviceDialogFlag and priority. 
    72      * HbDeviceDialogPlugin::DeviceDialogFlag and priority. 
    73      * @returns - true if device dialog information returned is valid.
    73      * @returns - true if device dialog information returned is valid.
    74      */
    74      */
    75 
    75 
    76     bool deviceDialogInfo(const QString &deviceDialogType,
    76     bool deviceDialogInfo(const QString &deviceDialogType,
    77             const QVariantMap &parameters, DeviceDialogInfo *info) const;
    77             const QVariantMap &parameters, DeviceDialogInfo *info) const;
    78     
    78 
    79     /**
    79     /**
    80      * Returns a list of device dialog types the plugin implements. A plugin may implement 
    80      * Returns a list of device dialog types the plugin implements. A plugin may implement 
    81      * several device dialog types. By convention device dialog type strings should follow 
    81      * several device dialog types. By convention device dialog type strings should follow 
    82      * inverted domain name format
    82      * inverted domain name format
    83      * @returns - list of device dialog types
    83      * @returns - list of device dialog types
    86 
    86 
    87     /**
    87     /**
    88      * @returns - plugin flags
    88      * @returns - plugin flags
    89      */
    89      */
    90     HbDeviceDialogPlugin::PluginFlags pluginFlags() const;
    90     HbDeviceDialogPlugin::PluginFlags pluginFlags() const;
    91     
    91 
    92     /**
    92     /**
    93      * Returns an error last occurred. Error code ranges are defined in HbDeviceDialog. The code 
    93      * Returns an error last occurred. Error code ranges are defined in HbDeviceDialog. The code 
    94      * is passed to a client by device dialog framework
    94      * is passed to a client by device dialog framework
    95      * @returns- errorcode
    95      * @returns- errorcode
    96      */
    96      */
    97     int error() const;
    97     int error() const;
    98     
    98 
    99 private:
    99 private:
   100     
   100 
   101     
   101     /**
       
   102      * Fix for ou1cimx1#462081
       
   103      * Loads the qt message file for localization and installs the translator.
       
   104      */
       
   105     void installTranslator();
       
   106 
       
   107 private:
       
   108 
   102     /**
   109     /**
   103      * instance of translator
   110      * instance of translator
   104      * owns
   111      * owns
   105      */
   112      */
   106     QTranslator * mTranslator;
   113     QTranslator * mTranslator;