examples/SFExamples/symbian_os_communications_programming_book_v2/chapter8/receivingmessages/CSummaryScreenUI.h

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 #include "CMessageSummaryEngine.h"
00018 #include "CWeatherReportWatcher.h"
00019 
00020 #ifndef _CMESSAGESUMMARYENGINE_H
00021 #define _CMESSAGESUMMARYENGINE_H
00022 
00023 class CSummaryScreenUI : public CActive,
00024                                                         public MSummaryEngineObserver,
00025                                                         public MWeatherReportObserver
00026         {
00027 public:
00028         static CSummaryScreenUI* NewLC(CConsoleBase& aConsole);
00029         void StartL();
00030 
00031         ~CSummaryScreenUI();
00032         
00033         // From MSummaryEngineObserver
00034         void Refresh();
00035         
00036         // From MWeatherReportObserver
00037         void NewWeatherReport(MWeatherReportObserver::TWeatherReport aWeatherReport);
00038 
00039 protected:
00040         CSummaryScreenUI(CConsoleBase& aConsole);
00041         void ConstructL();
00042         
00043         void WriteSummaries(const CMessageSummaryGenerator& aSummaryGenerator);
00044         
00045         // CActive functions
00046         void DoCancel();
00047         void RunL();
00048 
00049 private:
00050         MWeatherReportObserver::TWeatherReport iWeatherReport;
00051         CWeatherReportWatcher* iWeatherReportWatcher;
00052         CMessageSummaryEngine* iMessageSummaryEngine;
00053         CConsoleBase& iConsole;
00054         RFs iFs;
00055         };
00056 
00057 #endif

Generated by  doxygen 1.6.2