widgets/widgetapp/inc/WidgetUiNetworkListener.h
changeset 65 5bfc169077b2
parent 42 d39add9822e2
child 66 cacf6ee57968
equal deleted inserted replaced
42:d39add9822e2 65:5bfc169077b2
     1 /*
     1 //
     2 * Copyright (c) 2008, 2009 Nokia Corporation and/or its subsidiary(-ies).
     2 //==============================================================================
     3 * All rights reserved.
     3 // Name        : WidgetUiNetworkListener.h
     4 * This component and the accompanying materials are made available
     4 // Part of     : WidgetUI
     5 * under the terms of "Eclipse Public License v1.0"
     5 // Interface   :
     6 * which accompanies this distribution, and is available
     6 // Description :
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 // Version      : %version: 9 %
     8 *
     8 //
     9 * Initial Contributors:
     9 // Copyright  2008, 2009 Nokia Corporation.
    10 * Nokia Corporation - initial contribution.
    10 // This material, including documentation and any related
    11 *
    11 // computer programs, is protected by copyright controlled by
    12 * Contributors:
    12 // Nokia Corporation. All rights are reserved. Copying,
    13 *
    13 // including reproducing, storing, adapting or translating, any
    14 * Description: 
    14 // or all of this material requires the prior written consent of
    15 *
    15 // Nokia Corporation. This material also contains confidential
    16 */
    16 // information which may not be disclosed to others without the
    17 
    17 // prior written consent of Nokia Corporation.
       
    18 //==============================================================================
       
    19 //
    18 
    20 
    19 #ifndef WIDGETUINETWORKLISTENER_H_
    21 #ifndef WIDGETUINETWORKLISTENER_H_
    20 #define WIDGETUINETWORKLISTENER_H_
    22 #define WIDGETUINETWORKLISTENER_H_
    21 
    23 
    22 // INCLUDES
    24 // INCLUDES
    40 class CWidgetUiNetworkListener : public CActive
    42 class CWidgetUiNetworkListener : public CActive
    41     {
    43     {
    42     public: //Methods
    44     public: //Methods
    43 
    45 
    44             // Constructors and destructor
    46             // Constructors and destructor
    45  
    47 
    46             /**
    48             /**
    47             * Static constructor
    49             * Static constructor
    48             */
    50             */
    49             static CWidgetUiNetworkListener* NewL(CWidgetUiWindowManager& aWindowManager);
    51             static CWidgetUiNetworkListener* NewL(CWidgetUiWindowManager& aWindowManager);
    50             
    52 
    51             /**
    53             /**
    52             * Destructor
    54             * Destructor
    53             */
    55             */
    54             ~CWidgetUiNetworkListener();
    56             ~CWidgetUiNetworkListener();
    55 
    57 
    82 
    84 
    83             /**
    85             /**
    84             * Closes connection
    86             * Closes connection
    85             */
    87             */
    86             void Close();
    88             void Close();
    87             
    89 
    88             /**
    90             /**
    89             * Check for existing active connections
    91             * Check for existing active connections
    90             * @return: ETrue if there is an active network connection, else EFalse
    92             * @return: ETrue if there is an active network connection, else EFalse
    91             */
    93             */
    92             TBool CheckActiveNetworkConnection();
    94             TBool CheckActiveNetworkConnection();
    93    
    95 
    94     private: // Data
    96     private: // Data
    95         
    97 
    96             // reference to WidgetUiWindowManager object
    98             // reference to WidgetUiWindowManager object
    97             CWidgetUiWindowManager& iWindowManager;
    99             CWidgetUiWindowManager& iWindowManager;
    98 
   100 
    99             // buffer to receive interface notification
   101             // buffer to receive interface notification
   100             TInterfaceNotificationBuf iNote;
   102             TInterfaceNotificationBuf iNote;