javaextensions/comm/src.s60/javacommconnection.cpp
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  ?Description
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #include <stdlib.h>
       
    21 #include <stdio.h>
       
    22 #include <usbman.h>
       
    23 #include <acminterface.h>
       
    24 #include "logger.h"
       
    25 #include "javacommconnection.h"
       
    26 #include "nativecommconnection.h"
       
    27 #include "fs_methodcall.h"
       
    28 
       
    29 using namespace java::comm;
       
    30 
       
    31 JavaCommConnection::JavaCommConnection(): FunctionServer("MyCommConServer")
       
    32 {
       
    33     JELOG2(ESOCKET);
       
    34     createServerToNewThread();
       
    35 
       
    36     int handle = reinterpret_cast<int>(this);
       
    37     CallMethod(this, &JavaCommConnection::createConnection,handle,this);
       
    38     //iNativeObj = new NativeCommConnection(this);
       
    39 
       
    40 }
       
    41 
       
    42 void JavaCommConnection::createConnection(int aHandle)
       
    43 {
       
    44     JELOG2(ESOCKET);
       
    45     JavaCommConnection *obj = reinterpret_cast<JavaCommConnection*>(aHandle);
       
    46     obj->iNativeObj = new NativeCommConnection(this);
       
    47 }
       
    48 
       
    49 
       
    50 JavaCommConnection::~JavaCommConnection()
       
    51 {
       
    52 
       
    53 
       
    54 }