diff -r 000000000000 -r 5f000ab63145 phoneapp/phoneuiview/inc/cphonenote.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/phoneapp/phoneuiview/inc/cphonenote.h Mon Jan 18 20:18:27 2010 +0200 @@ -0,0 +1,87 @@ +/* +* Copyright (c) 2005 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: PhoneUI Note +* +*/ + +/* +*/ + +#ifndef CPHONENOTE_H +#define CPHONENOTE_H + + +// INCLUDES +#include "tphonecmdparamnote.h" +#include + +// FORWARD DECLARATIONS + +class CPhoneNote : public CAknNoteDialog + { + public: // Constructors and destructor + + /** + * Constructor. + * + * @param aSelfPtr Pointer to self. + * This pointer is set to NULL when the note is destroyed by the framework. + * @param aCommandObserver Observer to receive command events from the note. + */ + CPhoneNote( CEikDialog** aSelfPtr, MEikCommandObserver& aCommandObserver ); + + /** + * Destructor. + */ + virtual ~CPhoneNote(); + + /** + * Sets the type of the note. + */ + void SetNoteType( TPhoneNoteType aNoteType ); + + /** + * Gets the type of the note. + */ + TPhoneNoteType NoteType(); + + /** + * Updates softkeys to note + * @param aResourceId Resource id + */ + void UpdateSoftkeysL( TInt aResourceId ); + + protected: + + TKeyResponse OfferKeyEventL( + const TKeyEvent& aKeyEvent, + TEventCode aType ); + + TBool OkToExitL( TInt aCommand ); + + void HandlePointerEventL( + const TPointerEvent& aPointerEvent ); + + protected: // Data + + MEikCommandObserver& iCommandObserver; + + //The type of note. Not necessarily set. + //Used in security view + TPhoneNoteType iNoteType; + }; + +#endif // CPHONENOTE_H + +// End of File