usbmgmt/usbmgr/host/functiondrivers/ms/msmm/refppnotifier/inc/refppnotifier.h
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:35:00 +0100
branchRCL_3
changeset 43 012cc2ee6408
parent 0 c9bc50fca66e
child 21 d67598c1c3be
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201033 Kit: 201035

/*
* Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

/**
 @file
 @internalComponent
*/

#ifndef REFPPNOTIFIER_H
#define REFPPNOTIFIER_H

#include <techview/eikdialg.h>
#include <eiknotapi.h>
#include "refppdialog.h"

/**
  The CMsmmRefPolicyPluginNotifier class
  This is a subclass derived from MEikSrvNotifierBase2, it is used as a ECOM
  plug-in of notify service to provide the function of showing a dialog when 
  error occured in MS mount manager.
 */
NONSHARABLE_CLASS (CMsmmRefPolicyPluginNotifier) : public MEikSrvNotifierBase2
    {
public:
	~CMsmmRefPolicyPluginNotifier();
	static CMsmmRefPolicyPluginNotifier* NewL();
	static CMsmmRefPolicyPluginNotifier* NewLC();
	
public:
    
    // from MEikSrvNotifierBase2
	void Release();
	TNotifierInfo RegisterL();
	TNotifierInfo Info() const;
	TPtrC8 StartL(const TDesC8& aBuffer);
	void StartL(const TDesC8& aBuffer, TInt aReplySlot, const RMessagePtr2& aMessage);
	void Cancel();
	TPtrC8 UpdateL(const TDesC8& aBuffer);
	
private:
    CMsmmRefPolicyPluginNotifier();
    void ConstructL();
    
private:
    TNotifierInfo iInfo;
    RMessagePtr2  iMessage;
    CCoeEnv* iCoeEnv;
    TInt iOffset;
    TBool iDialogIsVisible;
    CRefPPDialog* iDialogPtr;
    };

#endif /*REFPPNOTIFIER_H*/