wlanutilities/wlanindicatorplugin/src/wlanindicatorplugin.cpp
changeset 29 dbe86d96ce5b
parent 22 498f36116140
child 39 7b3e49e4608a
equal deleted inserted replaced
25:001d4d78e350 29:dbe86d96ce5b
   195             if (indicatorText[0] == wlanNotConnected){
   195             if (indicatorText[0] == wlanNotConnected){
   196                     qvariant = QString(hbTrId("txt_occ_dblist_wireless_lan_val_not_connected"));
   196                     qvariant = QString(hbTrId("txt_occ_dblist_wireless_lan_val_not_connected"));
   197                     }
   197                     }
   198 
   198 
   199             else if (indicatorText[0] == wlanConnected){
   199             else if (indicatorText[0] == wlanConnected){
   200                 QString iapName = indicatorText[1].toString();                                        
   200                 qvariant = indicatorText[1].toString();
   201                 QString str = QString(hbTrId("txt_occ_dblist_wireless_lan_val_1_connected"));
       
   202                 qvariant = str.arg(iapName);
       
   203                 }
   201                 }
   204             }            
   202             }            
   205         else 
   203         else 
   206            {
   204            {
   207             OstTrace0( WLANINDICATORPLUGIN_ERR,INVALID_PARAMS,"Invalid indicator parameters");
   205             OstTrace0( WLANINDICATORPLUGIN_ERR,INVALID_PARAMS,"Invalid indicator parameters");
   212         OstTraceFunctionExit1(DUP1_WLANINDICATORPLUGIN_INDICATORDATA_EXIT, this);
   210         OstTraceFunctionExit1(DUP1_WLANINDICATORPLUGIN_INDICATORDATA_EXIT, this);
   213         
   211         
   214         if (mParameter.isValid() && mParameter.type() == QVariant::List) {
   212         if (mParameter.isValid() && mParameter.type() == QVariant::List) {
   215             indicatorText = mParameter.toList();
   213             indicatorText = mParameter.toList();
   216             if ((indicatorText.size() > 0) && (indicatorText[0] == wlanConnected)) {
   214             if ((indicatorText.size() > 0) && (indicatorText[0] == wlanConnected)) {
   217                 qvariant = HbIcon("qtg_status_wlan");
   215                 qvariant = QString("qtg_status_wlan");
   218             }
   216             }
   219         }
   217         }
   220         break;
   218         break;
   221         // this is the icon in the indicator
   219         // this is the icon in the indicator
   222     case DecorationNameRole:
   220     case DecorationNameRole:
   223         OstTraceFunctionExit1(DUP2_WLANINDICATORPLUGIN_INDICATORDATA_EXIT, this);
   221         OstTraceFunctionExit1(DUP2_WLANINDICATORPLUGIN_INDICATORDATA_EXIT, this);
   224         qvariant = HbIcon("qtg_small_wlan");
   222         qvariant = QString("qtg_small_wlan");
   225         break;
   223         break;
   226     default:
   224     default:
   227         OstTraceFunctionExit1(DUP3_WLANINDICATORPLUGIN_INDICATORDATA_EXIT, this);
   225         OstTraceFunctionExit1(DUP3_WLANINDICATORPLUGIN_INDICATORDATA_EXIT, this);
   228         break;
   226         break;
   229     }
   227     }