mobilemessaging/smsui/viewerinc/MsgSmsViewerDoc.h
branchRCL_3
changeset 60 7fdbb852d323
parent 0 72b543305e3a
equal deleted inserted replaced
57:ebe688cedc25 60:7fdbb852d323
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *     Sms Viewer
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 #ifndef     MSGSMSVIEWERDOCUMENT_H
       
    22 #define     MSGSMSVIEWERDOCUMENT_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <MsgEditorDocument.h>       // CMsgEditorDocument
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  CMsgSmsviewerDocument
       
    31 */
       
    32 class CMsgSmsViewerDocument : public CMsgEditorDocument
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35         
       
    36         /**
       
    37         * Two-phased constructor.
       
    38         */
       
    39         static CMsgSmsViewerDocument* NewL(CEikApplication& aApp);  
       
    40         
       
    41         /**
       
    42         * Destructor.
       
    43         */
       
    44         virtual ~CMsgSmsViewerDocument();
       
    45 
       
    46     public:
       
    47         /**
       
    48         * From CMsgEditorDocument
       
    49         * @return TMsvId of default folder of the new sms'es.
       
    50         */
       
    51         TMsvId DefaultMsgFolder() const;
       
    52 
       
    53         /**
       
    54         * From CMsgEditorDocument 
       
    55         * @return TMsvId of default service.
       
    56         */
       
    57         TMsvId DefaultMsgService() const;
       
    58 
       
    59     private: // Functions from base classes
       
    60 
       
    61         /**
       
    62         * From CMsgEditorDocument : Sets the information of the new sms entry.
       
    63         * @param aService look from CMsgEditorDocument
       
    64         * @param aFolder look from CMsgEditorDocument
       
    65         * @return TMsvId look from CMsgEditorDocument
       
    66         */
       
    67         TMsvId CreateNewL(TMsvId aService,TMsvId aFolder);
       
    68 
       
    69         /**
       
    70         * From CMsgEditorDocument 
       
    71         */
       
    72         void EntryChangedL();
       
    73      
       
    74     private:
       
    75 
       
    76         /**
       
    77         * C++ constructor.
       
    78         */
       
    79         CMsgSmsViewerDocument(CEikApplication& aApp);
       
    80 
       
    81         /**
       
    82         * Creates a new CMsgSmsViewerAppUi
       
    83         * @param none
       
    84         * @return a pointer to CMsgSmsViewerAppUi
       
    85         */
       
    86         CEikAppUi* CreateAppUiL();
       
    87         
       
    88     };
       
    89 
       
    90 #endif      //  MSGSMSVIEWERDOCUMENT_H
       
    91             
       
    92 // End of File