userdict/inc/UdictDocument.h
changeset 0 9a3a17bfeb67
equal deleted inserted replaced
-1:000000000000 0:9a3a17bfeb67
       
     1 /*
       
     2 * Copyright (c) 2002-2004 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:     Japanese user dictionary Document class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 
       
    23 #ifndef UDICTDOCUMENT_H
       
    24 #define UDICTDOCUMENT_H
       
    25 
       
    26 //  INCLUDES
       
    27 #include <AknDoc.h>
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CEikAppUi;
       
    31 class CUserDictModel;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 *  Japanese user dictionary Document class.
       
    37 *  It owns CUserDictModel object.
       
    38 *  @since 2.6
       
    39 */
       
    40 class CUserDictDocument : public CAknDocument
       
    41     {
       
    42     public:  // Constructors and destructor
       
    43         
       
    44         /**
       
    45         * Two-phased constructor.
       
    46         * @param aApp is reference of the App.
       
    47         */
       
    48         static CUserDictDocument* NewL(CEikApplication& aApp);
       
    49         
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CUserDictDocument();
       
    54 
       
    55         /**
       
    56         * Returns CUserDictModel object.
       
    57         * @return CUserDictModel object.
       
    58         */
       
    59         CUserDictModel& Model() const;
       
    60 
       
    61     private:
       
    62 
       
    63         /**
       
    64         * C++ default constructor.
       
    65         * @param aApp is reference of the App.
       
    66         */
       
    67         CUserDictDocument(CEikApplication& aApp);
       
    68     
       
    69         /**
       
    70         * By default Symbian 2nd phase constructor is private.
       
    71         */
       
    72         void ConstructL();
       
    73 
       
    74     private:  // Functions from base classes
       
    75 
       
    76         /**
       
    77         * From CEikDocument.
       
    78         * Create user dictionary's AppUI object.
       
    79         * @return the created CEikAppUi object.
       
    80         */
       
    81         CEikAppUi* CreateAppUiL();
       
    82 
       
    83     private:  // Data
       
    84 
       
    85         // Japanese user dictionary model object
       
    86         CUserDictModel* iModel; // own
       
    87 
       
    88     };
       
    89 
       
    90 #endif      // UDICTDOCUMENT_H
       
    91             
       
    92 // End of File