00001 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). 00002 // All rights reserved. 00003 // This component and the accompanying materials are made available 00004 // under the terms of "Eclipse Public License v1.0" 00005 // which accompanies this distribution, and is available 00006 // at the URL "http://www.eclipse.org/legal/epl-v10.html". 00007 // 00008 // Initial Contributors: 00009 // Nokia Corporation - initial contribution. 00010 // 00011 // Contributors: 00012 // 00013 // Description: 00014 // Contains the definition of the CUserInterface class. 00015 // 00016 00017 00018 00022 #ifndef __USERINTERFACE_H__ 00023 #define __USERINTERFACE_H__ 00024 00025 #include "queue.h" 00026 #include "producer.h" 00027 #include "consumer.h" 00028 00034 class CUserInterface : public CActive 00035 { 00036 public: 00037 static CUserInterface* NewL(CConsoleBase* aConsole,CProducer* aProducer); 00038 void Initialize(CConsoleBase* aConsole,CProducer* aProducer); 00039 void RunL(); 00040 void DoCancel(); 00041 ~CUserInterface(); 00042 void ReadFunc(); 00043 00044 private: 00045 CUserInterface(); 00046 private: 00050 CConsoleBase* iConsole; 00055 CProducer* iProducer; 00056 }; 00057 00058 #endif