meetingrequest/mrgui/inc/cesmrtrackingviewdialog.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 21:08:33 +0300
branchRCL_3
changeset 12 4ce476e64c59
parent 0 8466d47a6819
child 16 b5fbb9b25d57
permissions -rw-r--r--
Revision: 201011 Kit: 201013

/*
* 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 : ESMR tracking viewe dialog
*  Version     : %version: e002sa33#7 %
*
*/
#ifndef CESMRTRACKINGVIEWDIALOG_H
#define CESMRTRACKINGVIEWDIALOG_H

// SYSTEM INCLUDE
#include <akndialog.h>
#include <caluser.h>
//#include <aknlists.h> 

#include "mesmruibase.h"
#include "mesmrresponseobserver.h"
#include "resmrstatic.h"


// FORWARD DECLARATIONS
class CESMRPolicy;
class MAgnEntryUiCallback;
class MESMRCalEntry;
class CESMRTrackingView; 

class CESMRTrackingViewDialog : public CAknDialog,
                                public MESMRUiBase
    {
public:

    /**
     * Two-phased constructor.
     *
     */
    static CESMRTrackingViewDialog* NewL(
            const CESMRPolicy& aPolicy,
            MESMRCalEntry& aEntry,
            MAgnEntryUiCallback& aCallback
            );

    /*
     * Destructor.
     */
    ~CESMRTrackingViewDialog();

public: // From CAknDialog
    SEikControlInfo CreateCustomControlL( TInt aType );
    TKeyResponse OfferKeyEventL(const TKeyEvent& aEvent, TEventCode aType);
    TBool OkToExitL (TInt aButtonId);
    void ProcessCommandL( TInt aCommand );
    void DynInitMenuPaneL(
            TInt aResourceId,
            CEikMenuPane* aMenuPane );
    void ActivateL();

public: // From MESUIBase
    TInt ExecuteViewLD();

public: // Used by tracking vieww
    
    void HandleListEventL();
    
private: // Implementation
    void DoProcessCommandL( TInt aCommand );
    CESMRTrackingViewDialog( const CESMRPolicy& aPolicy,
                             MESMRCalEntry& aEntry,
                             MAgnEntryUiCallback& aCallback);
    void ConstructL();
    TInt CountAttendeesL(CCalAttendee::TCalRole aRole);
    void SortAttendeesL();

private:

    /**
     * Ref: Policy for building fields and menus
     */
    const CESMRPolicy& iPolicy;

    /// Ref: Reference to MESRCalEntry (CCalEntry wrapper)
    MESMRCalEntry& iEntry;

    /// Ref: Agn Entry UI callback interface
    MAgnEntryUiCallback& iCallback;

    /**
     * Ref: The only control in this dialog. Fwk deletes.
     */
    CESMRTrackingView* iView;

    /// Own: Static TLS data handler
    RESMRStatic iESMRStatic;
    };

#endif /*CESMRTRACKINGVIEWDIALOG_H*/

// End of File