datacommsserver/networkingdialogapi/agentnotifier/inc/agentDummyNotifier.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2003-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 AGENTDUMMYNOTIFIER_H
       
    17 #define AGENTDUMMYNOTIFIER_H
       
    18 
       
    19 #include <twintnotifier.h>
       
    20 #include "agentnotifierdefs.h"
       
    21 
       
    22 const TUid KUidDummyAgentDialogNotifier = { 0x101FEB92 };
       
    23 
       
    24 IMPORT_C CArrayPtr<MNotifierBase2>* NotifierArray();
       
    25 
       
    26 class CAgentDummyNotifier : public MNotifierBase2, public CBase
       
    27 {
       
    28 public:
       
    29 
       
    30 	/**
       
    31 	 * Construction/destruction
       
    32 	 */
       
    33 	static CAgentDummyNotifier* NewL();
       
    34 	~CAgentDummyNotifier();
       
    35 
       
    36 	/**
       
    37 	 * Called when all resources allocated by notifiers should be freed.
       
    38 	 */
       
    39 	virtual void Release();
       
    40 	/**
       
    41 	 * Called when a notifier is first loaded to allow any initial construction that is required.
       
    42 	 */
       
    43 	virtual TNotifierInfo RegisterL();
       
    44 	/**
       
    45 	 * Return the priority a notifier takes and the channels it acts on.  The return value may be varied 
       
    46 	 * at run-time.
       
    47 	 */
       
    48 	virtual TNotifierInfo Info() const;
       
    49 	/**
       
    50 	 * Start the notifier with data aBuffer and return an initial response.
       
    51 	 */
       
    52 	virtual TPtrC8 StartL(const TDesC8& aBuffer);
       
    53 	/**
       
    54 	 * Start the notifier with data aBuffer.  aMessage should be completed when the notifier is deactivated.
       
    55 	 * May be called multiple times if more than one client starts the notifier.  The notifier is immediately
       
    56 	 * responsible for completing aMessage.
       
    57 	 */
       
    58 	virtual void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
       
    59 	/**
       
    60 	 * The notifier has been deactivated so resources can be freed and outstanding messages completed.
       
    61 	 */
       
    62 	virtual void Cancel();
       
    63 	/**
       
    64 	 * Update a currently active notifier with data aBuffer.
       
    65 	 */
       
    66 	virtual TPtrC8 UpdateL(const TDesC8& aBuffer);
       
    67 
       
    68 private:
       
    69 	/**
       
    70 	 * Private construction stuff
       
    71 	 */
       
    72 	CAgentDummyNotifier();
       
    73 	void ConstructL();
       
    74 	
       
    75 	/*
       
    76 	 * Private data
       
    77 	 */
       
    78 	TNotifierInfo iInfo;
       
    79 };
       
    80 
       
    81 #endif
       
    82