00001 /* 00002 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. 00003 * 00004 * Redistribution and use in source and binary forms, with or without 00005 * modification, are permitted provided that the following conditions are met: 00006 * 00007 * * Redistributions of source code must retain the above copyright notice, this 00008 * list of conditions and the following disclaimer. 00009 * * Redistributions in binary form must reproduce the above copyright notice, 00010 * this list of conditions and the following disclaimer in the documentation 00011 * and/or other materials provided with the distribution. 00012 * * Neither the name of Nokia Corporation nor the names of its contributors 00013 * may be used to endorse or promote products derived from this software 00014 * without specific prior written permission. 00015 * 00016 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00017 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00018 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00019 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00020 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00021 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00022 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00023 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00024 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00025 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00026 * 00027 * Description: 00028 */ 00029 00030 #ifndef __SMSEXAMPLE_LOG_VIEW_H__ 00031 #define __SMSEXAMPLE_LOG_VIEW_H__ 00032 00033 // INCLUDES 00034 #include <aknview.h> 00035 00036 // FORWARD DECLARATIONS 00037 class CSMSExampleRTEContainer; 00038 00042 class CLogView: public CAknView 00043 { 00044 public: 00045 00050 static CLogView* NewL(); 00051 00056 static CLogView* NewLC(); 00057 00061 ~CLogView(); 00062 00063 00064 public: // from CAknView 00065 00070 TUid Id() const; 00071 00076 void HandleCommandL(TInt aCommand); 00077 00084 void DoActivateL(const TVwsViewId& aPrevViewId, 00085 TUid aCustomMessageId, 00086 const TDesC8& aCustomMessage); 00087 00091 void DoDeactivate(); 00092 00093 void SizeChanged(); 00094 public: // member methods 00095 00100 void DrawTextL( const TDesC& aText ); 00101 00106 void DrawUnderlinedTextL( const TDesC& aText); 00107 00112 void DrawTextWithoutCarriageL( const TDesC& aText ); 00113 00117 void AddCarriageReturnL(); 00118 00119 00123 void LogEventBeginningL(); 00124 00125 private: 00126 00130 CLogView(); 00131 00135 void ConstructL(); 00136 00137 00138 private: // data members 00139 00140 // Container for this view 00141 CSMSExampleRTEContainer* iContainer; 00142 00143 // Identifier for this view 00144 TUid iIdentifier; 00145 }; 00146 00147 00148 #endif // __SMSEXAMPLE_LOG_VIEW__