webengine/osswebengine/WebKit/s60/plugins/NpnImplementation.cpp
branchCompilerCompatibility
changeset 52 4f66279b1086
parent 37 cb62a4f66ebe
equal deleted inserted replaced
51:ee8307949dae 52:4f66279b1086
   367         case NPNVasdEnabledBool:    // Tells whether SmartUpdate (former name: ASD) is enabled;
   367         case NPNVasdEnabledBool:    // Tells whether SmartUpdate (former name: ASD) is enabled;
   368                                     // true=SmartUpdate enabled, false=not enabled
   368                                     // true=SmartUpdate enabled, false=not enabled
   369         case NPNVisOfflineBool:     // Tells whether offline mode is enabled;
   369         case NPNVisOfflineBool:     // Tells whether offline mode is enabled;
   370                                     // true=offline mode enabled, false=not enabled
   370                                     // true=offline mode enabled, false=not enabled
   371             
   371             
   372         case NPNNetworkAccess:
   372     case NPNNetworkAccess: {
   373             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
   373             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
   374             TInt apId = -1;
   374             TInt apId = -1;
   375             if (pluginWin) {
   375             if (pluginWin) {
   376                 apId = pluginWin->pluginSkin()->handleNetworkAccess();
   376                 apId = pluginWin->pluginSkin()->handleNetworkAccess();
   377             }
   377             }
   378             *((TInt*) aRetValue) = apId;
   378             *((TInt*) aRetValue) = apId;
   379             break;
   379             break;
   380             
   380     }
   381        case NPNVGenericParameter: {   
   381        case NPNVGenericParameter: {   
   382             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
   382             PluginWin* pluginWin = (PluginWin*)aInstance->ndata;
   383             if (pluginWin) {
   383             if (pluginWin) {
   384                 void **v = (void **)aRetValue;
   384                 void **v = (void **)aRetValue;
   385                 *v = pluginWin->pluginSkin()->genericElementArray();
   385                 *v = pluginWin->pluginSkin()->genericElementArray();