diff -r f742655b05bf -r d38647835c2e convergedconnectionhandler/cchclientapi/src/cchtypes.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/convergedconnectionhandler/cchclientapi/src/cchtypes.cpp Wed Sep 01 12:29:57 2010 +0100 @@ -0,0 +1,95 @@ +/* +* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Cch basic types +* +*/ + + +// INCLUDE FILES +#include "cch.h" +#include "cchtypes.h" + +// EXTERNAL DATA STRUCTURES +// None + +// EXTERNAL FUNCTION PROTOTYPES +// None + +// CONSTANTS +// None + +// MACROS +// None + +// LOCAL CONSTANTS AND MACROS +// None + +// MODULE DATA STRUCTURES +// None + +// LOCAL FUNCTION PROTOTYPES +// None + +// FORWARD DECLARATIONS +// None + +// ============================= LOCAL FUNCTIONS ============================= + +// ============================ MEMBER FUNCTIONS ============================= + +// -------------------------------------------------------------------------- +// TCchServiceStatus::TCchServiceStatus +// -------------------------------------------------------------------------- +// +EXPORT_C TCchServiceStatus::TCchServiceStatus() +: iState( ECCHUninitialized ) +, iError( KErrNone ) + { + } + +// -------------------------------------------------------------------------- +// TCchServiceStatus::State +// -------------------------------------------------------------------------- +// +EXPORT_C TCCHSubserviceState TCchServiceStatus::State() const + { + return iState; + } + +// -------------------------------------------------------------------------- +// TCchServiceStatus::Error +// -------------------------------------------------------------------------- +// +EXPORT_C TInt TCchServiceStatus::Error() const + { + return iError; + } + +// -------------------------------------------------------------------------- +// TCchServiceStatus::SetState +// -------------------------------------------------------------------------- +// +EXPORT_C void TCchServiceStatus::SetState( TCCHSubserviceState aState ) + { + iState = aState; + } + +// -------------------------------------------------------------------------- +// TCchServiceStatus::SetError +// -------------------------------------------------------------------------- +// +EXPORT_C void TCchServiceStatus::SetError( TInt aError ) + { + iError = aError; + }