convergedconnectionhandler/cchclientapi/src/cchtypes.cpp
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 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:  Cch basic types
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "cch.h"
       
    21 #include "cchtypes.h"
       
    22 
       
    23 // EXTERNAL DATA STRUCTURES
       
    24 // None
       
    25 
       
    26 // EXTERNAL FUNCTION PROTOTYPES
       
    27 // None
       
    28 
       
    29 // CONSTANTS
       
    30 // None
       
    31 
       
    32 // MACROS
       
    33 // None
       
    34 
       
    35 // LOCAL CONSTANTS AND MACROS
       
    36 // None
       
    37 
       
    38 // MODULE DATA STRUCTURES
       
    39 // None
       
    40 
       
    41 // LOCAL FUNCTION PROTOTYPES
       
    42 // None
       
    43 
       
    44 // FORWARD DECLARATIONS
       
    45 // None
       
    46 
       
    47 // ============================= LOCAL FUNCTIONS =============================
       
    48 
       
    49 // ============================ MEMBER FUNCTIONS =============================
       
    50 
       
    51 // --------------------------------------------------------------------------
       
    52 // TCchServiceStatus::TCchServiceStatus
       
    53 // --------------------------------------------------------------------------
       
    54 //
       
    55 EXPORT_C TCchServiceStatus::TCchServiceStatus()
       
    56 : iState( ECCHUninitialized )
       
    57 , iError( KErrNone )
       
    58     {
       
    59     }
       
    60 
       
    61 // --------------------------------------------------------------------------
       
    62 // TCchServiceStatus::State
       
    63 // --------------------------------------------------------------------------
       
    64 //
       
    65 EXPORT_C TCCHSubserviceState TCchServiceStatus::State() const
       
    66 	{ 
       
    67 	return iState; 
       
    68 	}
       
    69 
       
    70 // --------------------------------------------------------------------------
       
    71 // TCchServiceStatus::Error
       
    72 // --------------------------------------------------------------------------
       
    73 //	
       
    74 EXPORT_C TInt TCchServiceStatus::Error() const
       
    75 	{ 
       
    76 	return iError; 
       
    77 	}
       
    78 
       
    79 // --------------------------------------------------------------------------
       
    80 // TCchServiceStatus::SetState
       
    81 // --------------------------------------------------------------------------
       
    82 //
       
    83 EXPORT_C void TCchServiceStatus::SetState( TCCHSubserviceState aState )
       
    84 	{ 
       
    85 	iState = aState; 
       
    86 	}
       
    87 
       
    88 // --------------------------------------------------------------------------
       
    89 // TCchServiceStatus::SetError
       
    90 // --------------------------------------------------------------------------
       
    91 //
       
    92 EXPORT_C void TCchServiceStatus::SetError( TInt aError )
       
    93 	{ 
       
    94 	iError = aError; 
       
    95 	}