javauis/nokiauiapi_qt/src/CGlobalIndicators.cpp
changeset 87 1627c337e51e
parent 78 71ad690e91f5
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
    37     //com_nokia_mid_ui_GlobalIndicators_CHAT_INDICATOR;
    37     //com_nokia_mid_ui_GlobalIndicators_CHAT_INDICATOR;
    38 
    38 
    39 const TInt KPropertyGlobalIndicatorUninitialized = 0;
    39 const TInt KPropertyGlobalIndicatorUninitialized = 0;
    40     //com_nokia_mid_ui_GlobalIndicators_INDICATOR_UNINITIALIZED;
    40     //com_nokia_mid_ui_GlobalIndicators_INDICATOR_UNINITIALIZED;
    41 
    41 
    42 const TInt KPropertyGlobalIndicatorHide = 0;
    42 //const TInt KPropertyGlobalIndicatorHide = 0;
    43     //com_nokia_mid_ui_GlobalIndicators_INDICATOR_HIDE;
    43     //com_nokia_mid_ui_GlobalIndicators_INDICATOR_HIDE;
    44 
    44 
    45 const TInt KPropertyGlobalIndicatorShow = 0;
    45 //const TInt KPropertyGlobalIndicatorShow = 0;
    46     //com_nokia_mid_ui_GlobalIndicators_INDICATOR_SHOW;
    46     //com_nokia_mid_ui_GlobalIndicators_INDICATOR_SHOW;
    47 }
    47 }
    48 
    48 
    49 // Required capabilites
    49 // Required capabilites
    50 // WriteDeviceData  // for setting the email status using RProperty::Set()
    50 // WriteDeviceData  // for setting the email status using RProperty::Set()
    55 // -----------------------------------------------------------------------------
    55 // -----------------------------------------------------------------------------
    56 // SetGlobalIndicator
    56 // SetGlobalIndicator
    57 // Sets the value for given global indicator.
    57 // Sets the value for given global indicator.
    58 // -----------------------------------------------------------------------------
    58 // -----------------------------------------------------------------------------
    59 //
    59 //
    60 TInt CGlobalIndicators::SetGlobalIndicator(TInt aIndicator, TInt aValue)
    60 TInt CGlobalIndicators::SetGlobalIndicator(TInt /*aIndicator*/, TInt /*aValue*/)
    61 {
    61 {
    62 
    62 
    63     LOG2(EJavaGlobalInd, EInfo,
    63    /* LOG2(EJavaGlobalInd, EInfo,
    64          "GlobalIndicators::SetGlobalIndicator indicator:%d, value:%d",
    64          "GlobalIndicators::SetGlobalIndicator indicator:%d, value:%d",
    65          aIndicator, aValue);
    65          aIndicator, aValue);
    66 
    66 
    67 
    67 
    68     // Make sure that indicator JNI constants match into P&S definitions used
    68     // Make sure that indicator JNI constants match into P&S definitions used
    74     }
    74     }
    75     if (aIndicator == KPropertyGlobalChatIndicator)
    75     if (aIndicator == KPropertyGlobalChatIndicator)
    76     {
    76     {
    77         //convertedIndicator = KCoreAppUIsUipInd;
    77         //convertedIndicator = KCoreAppUIsUipInd;
    78     }
    78     }
    79 
    79 */
    80     TInt readValue = KPropertyGlobalIndicatorUninitialized;
    80     TInt readValue = KPropertyGlobalIndicatorUninitialized;
    81     RProperty property;
    81     //RProperty property;
    82 
    82 
    83    /* TInt ret = property.Attach(KPSUidCoreApplicationUIs, convertedIndicator);
    83    /* TInt ret = property.Attach(KPSUidCoreApplicationUIs, convertedIndicator);
    84     if (KErrNone == ret)
    84     if (KErrNone == ret)
    85     {
    85     {
    86         ret = property.Get(readValue);
    86         ret = property.Get(readValue);