connectionmonitoring/connmon/connectionmonitor/inc/ConnMonBearerGPRS.h
changeset 0 5a93021fdf25
child 3 f7816ffc66ed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/connectionmonitoring/connmon/connectionmonitor/inc/ConnMonBearerGPRS.h	Thu Dec 17 08:55:21 2009 +0200
@@ -0,0 +1,67 @@
+/*
+* Copyright (c) 2006-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:  Declaration for bearer GPRS.
+*
+*/
+
+#ifndef CONNMONBEARERGPRS_H
+#define CONNMONBEARERGPRS_H
+
+#include "ConnMonBearer.h"
+
+/**
+ * TConnMonBearerGPRS
+ * Class declaration for GPRS bearer
+ */
+class TConnMonBearerGPRS : public TConnMonBearer
+    {
+public:
+    /**
+     * Constructor.
+     * @param aConnMonIAP Link to IAP services
+     */
+    TConnMonBearerGPRS( CConnMonIAP* aConnMonIAP, CConnMonCommsDatCache* aCommsDatCache );
+
+    // From TConnMonBearer
+
+    /**
+     * Is the bearer available
+     * @param aAvailable ETrue if bearer is available
+     * @return errorcode
+     */
+    TInt GetAvailability( TBool& aAvailable ) const;
+
+    /**
+     * Bearer ID getter
+     *
+     * @return bearer ID
+     */
+    TUint BearerId() const;
+
+    /**
+     * Invariant - validates bearer
+     *
+     * @return ETrue if bearer is valid (internal state is correct)
+     */
+    TBool Valid() const;
+
+    /**
+     * Sets available IAPs of this type as available in CommsDat cache
+     */
+    void FlagAvailableIaps() const;
+    };
+
+#endif // CONNMONBEARERGPRS_H
+
+// End-of-file