bearermanagement/mpm/inc/mpmdtmwatcher.h
changeset 0 5a93021fdf25
child 71 9f263f780e41
equal deleted inserted replaced
-1:000000000000 0:5a93021fdf25
       
     1 /*
       
     2 * Copyright (c) 2005-2007 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: MPM Dual Transfer Mode watcher
       
    15 *
       
    16 */
       
    17 
       
    18 /**
       
    19 @file mpmdtmwatcher.h
       
    20 Mobility Policy Manager Dual Transfer Mode watcher class definitions.
       
    21 */
       
    22 
       
    23 #ifndef MPMDTMWATCHER_H
       
    24 #define MPMDTMWATCHER_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <etelpckt.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CMPMServer;
       
    31 
       
    32 // CLASS DECLARATION
       
    33 /**
       
    34 *  Mobility Policy Manager Dual Transfer Mode watcher.
       
    35 *  @lib MPMServer.exe
       
    36 *  @since 3.1
       
    37 */
       
    38 class CMPMDtmWatcher : public CActive
       
    39     {
       
    40     public: // Constructors and destructor
       
    41 
       
    42         /**
       
    43         * Two-phased constructor.
       
    44         *
       
    45         * @return An initialized instance of this class.
       
    46         */
       
    47         static CMPMDtmWatcher* NewL( RPacketService& aPacketService );
       
    48 
       
    49         /**
       
    50         * Destructor.
       
    51         */
       
    52         ~CMPMDtmWatcher();
       
    53 
       
    54     public: // New methods
       
    55 
       
    56         /**
       
    57         * Checks if phone supports Dual Transfer Mode.
       
    58         * @since 3.1
       
    59         * @return ETrue phone supports DTM, otherwise EFalse.
       
    60         */
       
    61         TBool IsInDualMode() const;
       
    62 
       
    63     protected: // Functions from base classes
       
    64 
       
    65         /**
       
    66         * From CActive. Cancels request.
       
    67         * @since 3.1
       
    68         */
       
    69         void DoCancel();
       
    70 
       
    71         /**
       
    72         * From CActive. Run when request completes.
       
    73         * @since 3.1
       
    74         */
       
    75         void RunL();
       
    76 
       
    77     private: // New methods
       
    78 
       
    79         /**
       
    80         * Constructor.
       
    81         */
       
    82         CMPMDtmWatcher( RPacketService& aPacketService );
       
    83 
       
    84         /**
       
    85         * C++ default constructor. Not implemented.
       
    86         */
       
    87         CMPMDtmWatcher();
       
    88 
       
    89         /**
       
    90         * 2nd phase constructor.
       
    91         */
       
    92         void ConstructL();
       
    93 
       
    94         /**
       
    95         * Writes the packet class to log.
       
    96         * @since 3.1
       
    97         */
       
    98         void LogPacketClass() const;
       
    99 
       
   100     private: // Data
       
   101 
       
   102         RPacketService&             iPacketService;
       
   103         RPacketService::TMSClass    iMsClass;
       
   104         RPacketService::TMSClass    iMaxMsClass;
       
   105     };
       
   106 
       
   107 #endif // MPMDTMWATCHER_H