williamr@2: /* williamr@2: * Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@2: * under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members williamr@2: * which accompanies this distribution, and is available williamr@2: * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: williamr@2: * Name : sipconcreteprofileobserver.h williamr@2: * Part of : SIP Profile Client williamr@2: * Interface : private williamr@2: * The observer class that must be implemented by users of williamr@2: * CSIPConcreteProfile williamr@2: * Version : 1.0 williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef MSIPCONCRETEPROFILEOBSERVER_H williamr@2: #define MSIPCONCRETEPROFILEOBSERVER_H williamr@2: williamr@2: // INCLUDES williamr@2: williamr@2: #include williamr@2: williamr@2: // FORWARD DECLARATIONS williamr@2: williamr@2: williamr@2: // CLASS DECLARATION williamr@2: /** williamr@2: * @publishedAll williamr@2: * @released williamr@2: * williamr@2: * Observer class to be implemented by users of CSIPConcreteProfile williamr@2: * It provides event notifications related to profiles. williamr@2: */ williamr@2: class MSIPConcreteProfileObserver williamr@2: { williamr@2: public: williamr@2: williamr@2: /** williamr@2: * SIP profile registration status changed event williamr@2: * Event is send to those observers, who have the williamr@2: * corresponding profile instantiated. williamr@2: * @param aProfileId id of profile which registration williamr@2: * status has been changed. williamr@2: * @param aStatus new status of the profile williamr@2: * @param aStatusId id related to registration williamr@2: */ williamr@2: virtual void RegistrationStatusChangedL( williamr@2: TUint32 aProfileId, williamr@2: TInt aStatus, williamr@2: TUint32 aStatusId) = 0; williamr@2: williamr@2: /** williamr@2: * SIP profile creation event. williamr@2: * Event is send to all observers. williamr@2: * @param aProfileId id of new SIP Profile williamr@2: */ williamr@2: virtual void AddedL(TUint32 aProfileId) = 0; williamr@2: williamr@2: /** williamr@2: * SIP profile destruction event. williamr@2: * Event is send to those observers, who have the williamr@2: * corresponding profile instantiated. williamr@2: * @param aProfileId id of profile which was destroyed williamr@2: */ williamr@2: virtual void RemovedL(TUint32 aProfileId) = 0; williamr@2: williamr@2: /** williamr@2: * SIP profile information update event williamr@2: * Event is send to those observers, who have the williamr@2: * corresponding profile instantiated. williamr@2: * @param aProfileId id of updated SIP Profile williamr@2: * @param aSize size of updated SIP Profile williamr@2: */ williamr@2: virtual void UpdatedL(TUint32 aProfileId, TUint aSize) = 0; williamr@2: williamr@2: /** williamr@2: * An asynchronous error has occurred related to SIP profile williamr@2: * Event is send to those observers, who have the williamr@2: * corresponding profile instantiated. williamr@2: * @param aProfileId the id of failed profile williamr@2: * @param aStatus status indicating if error occurred williamr@2: * during registering (ERegistrationInProgress) williamr@2: * or deregistering (EUnregistrationInProgress) williamr@2: * @param aError a error code williamr@2: */ williamr@2: virtual void ErrorOccurredL( williamr@2: TUint32 aProfileId, williamr@2: TInt aStatus, williamr@2: TInt aError) = 0; williamr@2: }; williamr@2: williamr@2: #endif // MSIPCONCRETEPROFILEOBSERVER_H