examples/ForumNokia/InternetEmail/inc/InternetEmailContainer.h

00001 /*
00002  * Copyright � 2008 Nokia Corporation.
00003  */
00004 
00005 #ifndef INTERNETEMAILCONTAINER_H
00006 #define INTERNETEMAILCONTAINER_H
00007 
00008 // INCLUDES
00009 #include <coecntrl.h>
00010 
00011 #include <aknlists.h> //for listbox
00012 #include <eiklbo.h>   //for listboxobserver
00013 #include <badesca.h>  //string arrays
00014 
00015 #include "InternetEmailEngine.h" //for lazyness
00016 #include "InternetEmailAppUi.h" //for lazyness
00017    
00018 // FORWARD DECLARATIONS
00019 class  CInternetEmailEngine;
00020 class  CInternetEmailAppUi;
00021 
00022 // CLASS DECLARATION
00023 
00028 class CInternetEmailContainer : public CCoeControl, MCoeControlObserver, MEikListBoxObserver, MDesCArray
00029     {
00030     public: // Constructors and destructor
00031         
00036         void ConstructL(const TRect& aRect, CInternetEmailAppUi* aParent);
00037 
00041         ~CInternetEmailContainer();
00042 
00043     public: // New functions
00050         void MailCountChange();
00051 
00052     private: // New functions
00053 
00059         void OpenEmailL();
00060         
00061     public: // Functions from base classes
00062 
00063     private: // Functions from base classes
00064         // from MDesCArray
00065         TInt MdcaCount() const;
00066         TPtrC MdcaPoint(TInt aIndex) const;
00067         void EntryToListbox(TInt aIndex) const;
00068 
00076          TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
00077                                     TEventCode aType);
00078 
00079         // From CoeControl,SizeChanged.
00080         void SizeChanged();
00081         TInt CountComponentControls() const;
00082         CCoeControl* ComponentControl(TInt aIndex) const;
00083         void Draw(const TRect& aRect) const;
00084 
00085         // MCoeControlObserver
00086         void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
00087 
00088         // from MEikListBoxObserver
00089         void HandleListBoxEventL(CEikListBox* aListBox,TListBoxEvent aEventType);
00090         
00091         void HandleResourceChange(TInt aType);
00092 
00093     private: //data
00094         
00095         CEikTextListBox* iListBox;    // to view entries
00096         CInternetEmailAppUi* iParent; // for easier access to appui
00097         mutable TBuf<255> iText;      // because we are also an array
00098 
00099     };
00100 
00101 #endif
00102 
00103 // End of File

Generated by  doxygen 1.6.2