diff -r 6b1d113cdff3 -r 6638e7f4bd8f smsprotocols/smsstack/smsprot/Src/smspcdb.cpp --- a/smsprotocols/smsstack/smsprot/Src/smspcdb.cpp Mon May 03 13:37:20 2010 +0300 +++ b/smsprotocols/smsstack/smsprot/Src/smspcdb.cpp Thu May 06 15:10:38 2010 +0100 @@ -1,91 +1,91 @@ -// Copyright (c) 1997-2009 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: -// Implements the CSmspCommDbEvent class -// -// - -/** - @file -*/ - -#include "smspcdb.h" -#include "smspmain.h" -#include "smsuset.h" -#include "SmsuTimer.h" - - -/** - * Private constructor used in the first phase of construction. - * - * @param aSmsSettings Reference to sms configuration settings - * @param aSmsMessaging Reference to sms message - * @param aPriority CActive priority - */ -CSmspCommDbEvent::CSmspCommDbEvent(const TSmsSettings& aSmsSettings, RMobileSmsMessaging& aSmsMessaging, TInt aPriority) - : CSmsuActiveBase(aPriority), - iSmsSettings(aSmsSettings), - iSmsMessaging(aSmsMessaging) - { - } // CSmspCommDbEvent::CSmspCommDbEvent - - -CSmspCommDbEvent::~CSmspCommDbEvent() - { - iProperty.Close(); - } // CSmspCommDbEvent::~CSmspCommDbEvent - - -void CSmspCommDbEvent::ConstructL() - { - LOGSMSPROT1("CSmspCommDbEvent::ConstructL()"); - - ConstructTimeoutL(); - } // CSmspCommDbEvent::ConstructL - - -/** - * Starts the state machine by requesting the property to notify us when - * the CommDB change event is fired. - */ -void CSmspCommDbEvent::NotifyOnEvent() - { - LOGSMSPROT1("CSmspCommDbEvent::NotifyOnEvent()"); - - iProperty.Subscribe(iStatus); - SetActive(); - } // CSmspCommDbEvent::NotifyOnEvent - - -/** - * Restart notification if there is an error other than KErrCancel - * - * @param aStatus a status value. - */ -void CSmspCommDbEvent::Complete(TInt aError) - { - LOGSMSPROT1("CSmspCommDbEvent::Complete()"); - - // - // Call the base function to perform the actual complete... - // - CSmsuActiveBase::Complete(aError); - - // - // If the request was not cancelled, then restart it... - // - if (aError != KErrCancel && aError != KErrTimedOut) - { - NotifyOnEvent(); - } - } // CSmspCommDbEvent::Complete +// Copyright (c) 1997-2009 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: +// Implements the CSmspCommDbEvent class +// +// + +/** + @file +*/ + +#include "smspcdb.h" +#include "smspmain.h" +#include "smsuset.h" +#include "SmsuTimer.h" + + +/** + * Private constructor used in the first phase of construction. + * + * @param aSmsSettings Reference to sms configuration settings + * @param aSmsMessaging Reference to sms message + * @param aPriority CActive priority + */ +CSmspCommDbEvent::CSmspCommDbEvent(const TSmsSettings& aSmsSettings, RMobileSmsMessaging& aSmsMessaging, TInt aPriority) + : CSmsuActiveBase(aPriority), + iSmsSettings(aSmsSettings), + iSmsMessaging(aSmsMessaging) + { + } // CSmspCommDbEvent::CSmspCommDbEvent + + +CSmspCommDbEvent::~CSmspCommDbEvent() + { + iProperty.Close(); + } // CSmspCommDbEvent::~CSmspCommDbEvent + + +void CSmspCommDbEvent::ConstructL() + { + LOGSMSPROT1("CSmspCommDbEvent::ConstructL()"); + + ConstructTimeoutL(); + } // CSmspCommDbEvent::ConstructL + + +/** + * Starts the state machine by requesting the property to notify us when + * the CommDB change event is fired. + */ +void CSmspCommDbEvent::NotifyOnEvent() + { + LOGSMSPROT1("CSmspCommDbEvent::NotifyOnEvent()"); + + iProperty.Subscribe(iStatus); + SetActive(); + } // CSmspCommDbEvent::NotifyOnEvent + + +/** + * Restart notification if there is an error other than KErrCancel + * + * @param aStatus a status value. + */ +void CSmspCommDbEvent::Complete(TInt aError) + { + LOGSMSPROT1("CSmspCommDbEvent::Complete()"); + + // + // Call the base function to perform the actual complete... + // + CSmsuActiveBase::Complete(aError); + + // + // If the request was not cancelled, then restart it... + // + if (aError != KErrCancel && aError != KErrTimedOut) + { + NotifyOnEvent(); + } + } // CSmspCommDbEvent::Complete