diff -r f742655b05bf -r d38647835c2e voipplugins/sipconnectionprovider/inc/scpsipconnectionobserver.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/voipplugins/sipconnectionprovider/inc/scpsipconnectionobserver.h Wed Sep 01 12:29:57 2010 +0100 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2006-2010 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: +* +*/ + + +#ifndef M_SCPSIPCONNECTIONOBSERVER_H +#define M_SCPSIPCONNECTIONOBSERVER_H + +#include +#include + +#include "scpdefs.h" + +/** + * MScpSipConnectionObserver declaration. + * @lib sipconnectionprovider.dll + */ +class MScpSipConnectionObserver + { +public: + + /** + * SIP profile state observer. + * @param aProfileId SIP profile id + * @param aSipEvent A new event of SIP profile. + */ + virtual void HandleSipConnectionEvent( TUint32 aProfileId, + TScpConnectionEvent aEvent ) = 0; + + /** + * Query is starting to ALR allowed. + * Client can start ALR later if needed to do something first + * + * @return ETrue if allowed. + */ + virtual TBool IsSipProfileAllowedToStartAlr() = 0; + + }; + +/** + * MScpConnectionObserver declaration. + * @lib sipconnectionprovider.dll + */ +class MScpConnectionObserver + { +public: + + /** + * SIP profile state observer. + * @param aProfileId SIP profile id + * @param aSipEvent A new event of SIP profile. + */ + virtual void HandleConnectionEvent( TScpConnectionEvent aEvent ) = 0; + + }; + + +#endif // M_SCPSIPCONNECTIONOBSERVER_H + +// End of file