messagingapp/msgnotifications/msgindicatorplugin/src/msgindicatorplugin.cpp
changeset 27 e4592d119491
parent 25 84d9eb65b26f
child 47 5b14749788d7
equal deleted inserted replaced
25:84d9eb65b26f 27:e4592d119491
    21 #include "msginfodefs.h"
    21 #include "msginfodefs.h"
    22 
    22 
    23 #include <QtPlugin>
    23 #include <QtPlugin>
    24 #include <QVariant>
    24 #include <QVariant>
    25 
    25 
    26 Q_EXPORT_PLUGIN(MsgIndicatorPlugin)
       
    27 
    26 
    28 // ----------------------------------------------------------------------------
    27 // ----------------------------------------------------------------------------
    29 // MsgIndicatorPlugin::MsgIndicatorPlugin
    28 // MsgIndicatorPlugin::MsgIndicatorPlugin
    30 // @see msgindicatorplugin.h
    29 // @see msgindicatorplugin.h
    31 // ----------------------------------------------------------------------------
    30 // ----------------------------------------------------------------------------
    60 // MsgIndicatorPlugin::accessAllowed
    59 // MsgIndicatorPlugin::accessAllowed
    61 // Check if client is allowed to use notification widget
    60 // Check if client is allowed to use notification widget
    62 // @see msgindicatorplugin.h
    61 // @see msgindicatorplugin.h
    63 // ----------------------------------------------------------------------------
    62 // ----------------------------------------------------------------------------
    64 bool MsgIndicatorPlugin::accessAllowed(const QString &indicatorType,
    63 bool MsgIndicatorPlugin::accessAllowed(const QString &indicatorType,
    65     const HbSecurityInfo *securityInfo) const
    64     const QVariantMap& securityInfo) const
    66 {
    65 {
    67     Q_UNUSED(indicatorType)
    66     Q_UNUSED(indicatorType)
    68     Q_UNUSED(securityInfo)
    67     Q_UNUSED(securityInfo)
    69 
    68 
    70     // This plugin doesn't perform operations that may compromise security.
    69     // This plugin doesn't perform operations that may compromise security.
   107             return i;
   106             return i;
   108         }
   107         }
   109     }
   108     }
   110     return -1;
   109     return -1;
   111 }
   110 }
       
   111 
       
   112 Q_EXPORT_PLUGIN2(msgindicatorplugin,MsgIndicatorPlugin)