javauis/mmapi_qt/baseline/src/itemdisplay.cpp
changeset 26 dc7c549001d5
parent 23 98ccebc37403
equal deleted inserted replaced
23:98ccebc37403 26:dc7c549001d5
    82  jint aEventSourceHandle,
    82  jint aEventSourceHandle,
    83  jint aDisplayHandle,
    83  jint aDisplayHandle,
    84  jint /*aTentative*/)  // tentative value is ignored because current
    84  jint /*aTentative*/)  // tentative value is ignored because current
    85 // implementation returns always -1
    85 // implementation returns always -1
    86 {
    86 {
       
    87     LOG(EJavaMMAPI,EInfo,"Java_com_nokia_microedition_media_control_VideoItem__1getPrefContentHeight +");
       
    88 
    87     CMMAItemDisplay* itemDisplay = reinterpret_cast< CMMAItemDisplay* >(aDisplayHandle);
    89     CMMAItemDisplay* itemDisplay = reinterpret_cast< CMMAItemDisplay* >(aDisplayHandle);
    88     MMAFunctionServer* eventSource = reinterpret_cast< MMAFunctionServer *>(aEventSourceHandle);
    90     MMAFunctionServer* eventSource = reinterpret_cast< MMAFunctionServer *>(aEventSourceHandle);
    89 
    91 
    90     TSize size;
    92     TSize size;
    91     eventSource->ExecuteV(CMMAItemDisplay::StaticSourceSize,
    93     eventSource->ExecuteV(CMMAItemDisplay::StaticSourceSize,
    92                           itemDisplay,
    94                           itemDisplay,
    93                           (TSize*)&size);
    95                           (TSize*)&size);
       
    96 
       
    97     LOG1(EJavaMMAPI,EInfo,"Java_com_nokia_microedition_media_control_VideoItem__1getPrefContentHeight - height = %d",size.iHeight);
       
    98 
    94     return size.iHeight;
    99     return size.iHeight;
    95 }
   100 }
    96 
   101 
    97 JNIEXPORT jint JNICALL Java_com_nokia_microedition_media_control_VideoItem__1getPrefContentWidth
   102 JNIEXPORT jint JNICALL Java_com_nokia_microedition_media_control_VideoItem__1getPrefContentWidth
    98 (JNIEnv*, jobject,
   103 (JNIEnv*, jobject,
    99  jint aEventSourceHandle,
   104  jint aEventSourceHandle,
   100  jint aDisplayHandle,
   105  jint aDisplayHandle,
   101  jint /*aTentative*/)  // tentative value is ignored because current
   106  jint /*aTentative*/)  // tentative value is ignored because current
   102 // implementation returns always -1
   107 // implementation returns always -1
   103 {
   108 {
       
   109     LOG(EJavaMMAPI,EInfo,"Java_com_nokia_microedition_media_control_VideoItem__1getPrefContentWidth +");
   104     CMMAItemDisplay* itemDisplay = reinterpret_cast< CMMAItemDisplay *>(aDisplayHandle);
   110     CMMAItemDisplay* itemDisplay = reinterpret_cast< CMMAItemDisplay *>(aDisplayHandle);
   105     MMAFunctionServer* eventSource = reinterpret_cast< MMAFunctionServer* >(aEventSourceHandle);
   111     MMAFunctionServer* eventSource = reinterpret_cast< MMAFunctionServer* >(aEventSourceHandle);
   106 
   112 
   107     TSize size;
   113     TSize size;
   108     eventSource->ExecuteV(CMMAItemDisplay::StaticSourceSize,
   114     eventSource->ExecuteV(CMMAItemDisplay::StaticSourceSize,
   109                           itemDisplay,
   115                           itemDisplay,
   110                           (TSize*)&size);
   116                           (TSize*)&size);
       
   117     LOG1(EJavaMMAPI,EInfo,"Java_com_nokia_microedition_media_control_VideoItem__1getPrefContentWidth - widht = %d",size.iWidth);
   111     return size.iWidth;
   118     return size.iWidth;
   112 }
   119 }
   113 
   120 
   114 
   121 
   115 //  END OF FILE
   122 //  END OF FILE