javacommons/security/src.s60/telutils.h
branchRCL_3
changeset 19 04becd199f91
child 46 4376525cdefb
child 56 abc41079b313
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2007-2007 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 TELUTILS_H
       
    20 #define TELUTILS_H
       
    21 
       
    22 #include <string>
       
    23 #include <etelmm.h>
       
    24 #include <mmtsy_names.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 namespace java
       
    28 {
       
    29 namespace security
       
    30 {
       
    31 
       
    32 class TelUtils: public CBase
       
    33 {
       
    34 public:
       
    35     static TelUtils* createInstance();
       
    36     void getNetworkCodes(std::string& mnc, std::string& mcc);
       
    37     void getImei(std::string& imei);
       
    38     virtual ~TelUtils();
       
    39 
       
    40 private: //Methods
       
    41     TelUtils();
       
    42     void ConstructL();
       
    43     void descToStr(HBufC * , std::string&);
       
    44     RTelServer                                  iServer;
       
    45     RMobilePhone                                iPhone;
       
    46     HBufC*                                      iImei;
       
    47     HBufC*                                      iMnc;
       
    48     HBufC*                                      iMcc;
       
    49 };
       
    50 
       
    51 } //end namespace security
       
    52 } //end namespace java
       
    53 
       
    54 #endif // TELUTILS_H