linklayercontrol/networkinterfacemgr/inc/cagentdlgproc.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2006-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 /**
       
    17  @file
       
    18  @internalTechnology
       
    19 */
       
    20 
       
    21 #ifndef CAGENTDLGPROC_H
       
    22 #define CAGENTDLGPROC_H
       
    23 
       
    24 #include <e32base.h>
       
    25 #include <comms-infras/cagentbase.h>
       
    26 #include <comms-infras/cnetworkcontrollerbase.h>
       
    27 
       
    28 
       
    29 class CAgentDialogProcessor : public CBase, private MDialogProcessorObserver
       
    30     {
       
    31 public:
       
    32     CAgentDialogProcessor();
       
    33     
       
    34     void PromptForReconnect(CAgentBase& aAgent);
       
    35     void CancelPromptForReconnect(CAgentBase& aAgent);
       
    36     
       
    37 private:
       
    38     // Implementation of MDialogProcessorObserver
       
    39     // All other interface members will panic if called
       
    40 	virtual void MDPOReconnectComplete(TInt aError);
       
    41 
       
    42     // Queuing methods
       
    43 	inline TBool IsEmpty() const;
       
    44 	void Enque(CAgentBase* aItem);
       
    45 	CAgentBase* Deque();
       
    46 	TBool IsQueued(CAgentBase* aItem);
       
    47 
       
    48 private:
       
    49     CAgentBase* iCurrentRequest;
       
    50     TSglQue<CAgentBase*> iQueue;
       
    51 	TUint iQueueLength;
       
    52     };
       
    53 
       
    54     
       
    55 inline TBool CAgentDialogProcessor::IsEmpty() const
       
    56     {
       
    57     return iQueueLength == 0;
       
    58     }
       
    59 
       
    60 #endif
       
    61 // CAGENTDLGPROC_H
       
    62