diff -r 000000000000 -r f5a58ecadc66 upnp/upnpstack_plat/upnp_common_api/inc/upnpnetworkeventbase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/upnp/upnpstack_plat/upnp_common_api/inc/upnpnetworkeventbase.h Tue Feb 02 01:12:20 2010 +0200 @@ -0,0 +1,75 @@ +/** @file +* Copyright (c) 2005-2006 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: CUpnpNetworkEventBase +* +*/ + +#ifndef C_UPNPNETWORKEVENTBASE_H +#define C_UPNPNETWORKEVENTBASE_H + +// Includes +#include +#include + + +/** + * Base class for network events + * @since S60 5.0 + **/ +class CUpnpNetworkEventBase : public CBase + { +public: + + /** + * Constructor + * @since S60 5.0 + * @param error + */ + CUpnpNetworkEventBase( TInt aError ); + + /** + * Constructor + * @since S60 5.0 + * @param network event type + */ + CUpnpNetworkEventBase( TUpnpCmSubRsp aType ); + + /** + * Getter for network event type + * @since S60 5.0 + * @return Type + */ + IMPORT_C TUpnpCmSubRsp Type(); + + /** + * Getter for network event error + * @since S60 5.0 + * @return error + */ + IMPORT_C TInt SubscriberError(); + +protected: // Data + + // Network event type + TUpnpCmSubRsp iType; + + // Subscription error + TInt iSubscriberError; + + }; + +#endif // C_UPNPNETWORKEVENTBASE_H + +// End of file +