diff -r 000000000000 -r 5e5d6b214f4f instantmsgindicatorplugin/inc/instantmsgindicatorpluginimplementation.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/instantmsgindicatorplugin/inc/instantmsgindicatorpluginimplementation.h Tue Feb 02 10:12:18 2010 +0200 @@ -0,0 +1,104 @@ +/* +* Copyright (c) 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: this class is the implementation of the plugin +* +*/ +// This file defines the API for imstatuspaneindicator.dll + +#ifndef __INSTANTMSGINDICATORPLUGINIMPLEMENTATION_H__ +#define __INSTNATMSGINDICATORPLUGINIMPLEMENTATION_H__ + +// Include Files + +#include // CBase +#include // TBuf +#include +#include "instantmsgindicatoruids.h" + + +//Forward Declarations + +class CAknSmallIndicator; +class CIMAlertManager; +// Class Definitions + +class CInstantMsgIndicatorPluginImplementation : public CInstantMsgIndicator + { +public: + // new functions + + /** + * NewLC two phase constructor. + * @param aServiceId, service id + */ + static CInstantMsgIndicatorPluginImplementation* NewL( ); + + /** + * NewLC two phase constructor. + * @param aServiceId, service id + */ + static CInstantMsgIndicatorPluginImplementation* NewLC( ); + + /** + * c++ default destructor + */ + virtual ~CInstantMsgIndicatorPluginImplementation(); + +public: + + + /** + * sets/resets the status pane indicator + * @param aNewMessages, new message count + * @param aSeriveId, service id. + * @param aSenderId, message sender id. + * @param aMultipleSender, count of number of P-2_p chats. + */ + void MessageInfoL(TInt aNewMessages, TInt aSeriveId, const TDesC& aSenderId, TInt aMultipleSender); + + + +private: // new functions + + + /** + * C++ constructor. + */ + CInstantMsgIndicatorPluginImplementation(); + + /** + * Second phase construction + * ConstructL + */ + void ConstructL(); + + /* + * Show IM indicator. + */ + void ShowIMIndicatorL(TInt aNewMessages, TInt aSeriveId, const TDesC& aSenderId, TInt aMultipleSender); + + /* + * play the msg tone. + */ + void PlayMsgToneL(TInt aNewMessages,TInt aSeriveId); +private: // data + + // owned, object of status indicator. + CAknSmallIndicator* iIndicator; + + CIMAlertManager* iIMAlertMgr; + }; + +#endif // __INSTANTMSGINDICATORPLUGINIMPLEMENTATION_H__ +