Ignore:
Timestamp:
08/22/10 21:58:42 (21 months ago)
Author:
shiretu
Message:

-- android stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/applications/applestreamingclient/include/jnihelpers.h

    r85 r89  
    2626 
    2727typedef struct _CallBackInfo { 
    28         JNIEnv* pEnv; 
    29         jobject pInterface; 
    30         jclass clazz; 
    31         jmethodID method; 
     28        JNIEnv* env; 
     29        jobject callbackHandler; 
     30        string callbackClassName; 
     31        jclass callbackClass; 
     32        string callbackMethodName; 
     33        jmethodID callbackMethod; 
    3234 
    3335        _CallBackInfo() { 
    34                 pEnv = NULL; 
    35                 pInterface = NULL; 
    36                 clazz = NULL; 
    37                 method = NULL; 
     36                env = NULL; 
     37                callbackHandler = NULL; 
     38                callbackClassName = ""; 
     39                callbackClass = NULL; 
     40                callbackMethodName = ""; 
     41                callbackMethod = NULL; 
    3842        }; 
    3943 
     44        _CallBackInfo(_CallBackInfo & ci) { 
     45                copy(ci); 
     46        } 
     47 
     48        _CallBackInfo & operator =(_CallBackInfo & ci) { 
     49                copy(ci); 
     50                return *this; 
     51        } 
     52 
     53        void copy(_CallBackInfo & ci) { 
     54                this->env = ci.env; 
     55                this->callbackHandler = ci.callbackHandler; 
     56                this->callbackClassName = ci.callbackClassName; 
     57                this->callbackClass = ci.callbackClass; 
     58                this->callbackMethodName = ""; 
     59                this->callbackMethod = NULL; 
     60        } 
     61 
    4062        operator string() { 
    41                 return format("pEnv: %p; pInterface: %p; clazz: %p; method: %p", 
    42                                 pEnv, pInterface, clazz, method); 
     63                return format("env: %p;\ncallbackHandler: %p;\ncallbackClassName: %s;\ncallbackClass: %p;\ncallbackMethodName: %s;\ncallbackMethod: %p", 
     64                                env, 
     65                                callbackHandler, 
     66                                STR(callbackClassName), 
     67                                callbackClass, 
     68                                STR(callbackMethodName), 
     69                                callbackMethod); 
    4370        }; 
    4471} CallBackInfo; 
Note: See TracChangeset for help on using the changeset viewer.