javaextensions/bluetooth/bluetoothcommons/inc/serviceclasshandler.h
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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef SERVICECLASSHANDLER_H
       
    20 #define SERVICECLASSHANDLER_H
       
    21 
       
    22 #include <string>
       
    23 #include "commsclientendpoint.h"
       
    24 #include "commsmessage.h"
       
    25 
       
    26 namespace java
       
    27 {
       
    28 namespace bluetooth
       
    29 {
       
    30 
       
    31 class ServiceClassHandler
       
    32 {
       
    33 public:
       
    34 
       
    35     /*
       
    36      * If aFlag is true, the value of the aSrvClassVal is OR'd with the current entry
       
    37      * Otherwise, it will be replaced.
       
    38      */
       
    39     OS_IMPORT
       
    40     static int setDeviceServiceClass(unsigned int aSrvClassVal,
       
    41                                      bool aIsServiceBitsPersistent = false);
       
    42 
       
    43 private:
       
    44     static std::wstring getMidletId();
       
    45     static int sendMsg(java::comms::CommsMessage aMsg);
       
    46 
       
    47 };
       
    48 
       
    49 } //end namespace bluetooth
       
    50 } //end namespace java
       
    51 #endif // SERVICECLASSHANDLER_H