telephonyutils/telephonywatchers/inc/ModemChangeObserver.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __MODEMCHANGEOBSERVER_H__
       
    17 #define __MODEMCHANGEOBSERVER_H__
       
    18 
       
    19 // System includes
       
    20 #include <e32base.h>
       
    21 #include <e32property.h>
       
    22 
       
    23 
       
    24 //
       
    25 // ------> MModemChangeObserver (header)
       
    26 //
       
    27 class MModemChangeObserver
       
    28 /**
       
    29 @internalComponent
       
    30 */
       
    31 	{
       
    32 //
       
    33 public: // FROM MModemChangeObserver
       
    34 //
       
    35 	virtual void HandleModemChangedL() = 0;
       
    36 	};
       
    37 
       
    38 
       
    39 
       
    40 //
       
    41 // ------> CModemChangeObserver (header)
       
    42 //
       
    43 class CModemChangeObserver : public CActive
       
    44 /**
       
    45 @internalComponent
       
    46 */
       
    47 {
       
    48 //
       
    49 public: // CONSTRUCT / DESTRUCT
       
    50 //
       
    51 	IMPORT_C CModemChangeObserver(MModemChangeObserver& aObserver);
       
    52 	IMPORT_C ~CModemChangeObserver();
       
    53 	IMPORT_C void ConstructL();
       
    54 
       
    55 //
       
    56 public: // ISSUE REQUEST
       
    57 //
       
    58 	void IssueRequestL();
       
    59 
       
    60 //
       
    61 private: // FROM CActive
       
    62 //
       
    63 	void RunL();
       
    64 	void DoCancel();
       
    65 	TInt RunError(TInt aError);
       
    66 
       
    67 //
       
    68 private: // MEMBER DATA
       
    69 //
       
    70 	RProperty iModemChangeProperty;
       
    71 	MModemChangeObserver& iObserver;
       
    72 	};
       
    73 
       
    74 
       
    75 #endif