diff -r 000000000000 -r 72b543305e3a email/mail/EditorSrc/CMsgAddMailHeadersDlg.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/email/mail/EditorSrc/CMsgAddMailHeadersDlg.h Thu Dec 17 08:44:11 2009 +0200 @@ -0,0 +1,87 @@ +/* +* Copyright (c) 2002-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: View for setting additional mail headers +* +*/ + + + +#ifndef CMSGADDMAILHEADERSDLG_H +#define CMSGADDMAILHEADERSDLG_H + +// INCLUDES +#include +#include +#include + +// FORWARD DECLARATIONS +class TAdditionalHeaderStatus; + +// CLASS DECLARATION + +/** +* Dialog for configuring additional mail headers +* +* @since Series 3.0 + */ +NONSHARABLE_CLASS(CMsgAddMailHeadersDlg) : public CBase + { + + public: // Constructors and destructor + + /** + * Two-phased constructor. + * @param aHeaders headers array + */ + static CMsgAddMailHeadersDlg* NewLC( + RPointerArray& aHeaders ); + + /** + * Destructor. + */ + virtual ~CMsgAddMailHeadersDlg(); + + public: // New functions + + /** + * Launches the view for additional headers + * @since Series 3.0 + * @return value of executed view + */ + TBool ExecuteDialogL(); + + private: // implementation + + CDesCArrayFlat* CreateItemTextArrayLC( + CArrayFixFlat* aVisibleItems ); + void UpdateHeadersArrayL( + CArrayFixFlat* aSelectedItems ); + + private: + + /** + * C++ constructor. + */ + CMsgAddMailHeadersDlg( + RPointerArray& aHeaders ); + + private: //data + + // refs: selection data headers + RPointerArray iHeaders; + + }; +#endif //CMSGADDMAILHEADERSDLG_H + +// End of File