mobilemessaging/unieditor/inc/UniMsvEntry.h
changeset 0 72b543305e3a
child 5 4697dfb2d7ad
equal deleted inserted replaced
-1:000000000000 0:72b543305e3a
       
     1 /*
       
     2 * Copyright (c) 2005 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: UniMsvEntry  declaration
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19  
       
    20 #ifndef __UNIMSVENTRY_H
       
    21 #define __UNIMSVENTRY_H
       
    22 
       
    23 //  INCLUDES
       
    24 
       
    25 #include <msvstd.h>
       
    26 #include <mmsconst.h>
       
    27 #include <unieditorconsts.h>
       
    28 
       
    29 // CONSTANTS
       
    30 
       
    31 // FUNCTION PROTOTYPES
       
    32 
       
    33 // FORWARD DECLARATIONS
       
    34 
       
    35 // CLASS DECLARATION
       
    36 
       
    37 class TUniMsvEntry
       
    38     {
       
    39     public:
       
    40     
       
    41         /**
       
    42         * Returns the current message type of the entry.
       
    43         * @return Current message type.
       
    44         */
       
    45         static inline TUniMessageCurrentType CurrentMessageType( const TMsvEntry& aEntry );
       
    46 
       
    47         /**
       
    48         * Mutator for current message type.
       
    49         * @aParam aParam Current message type.
       
    50         */
       
    51         static inline void SetCurrentMessageType( TMsvEntry& aEntry, TUniMessageCurrentType aParam );
       
    52 
       
    53         /**
       
    54         * Returns the charset support of the entry.
       
    55         * @return Charset support.
       
    56         */
       
    57         static inline TUniMessageCharSetSupport CharSetSupport( const TMsvEntry& aEntry );
       
    58 
       
    59         /**
       
    60         * Mutator for charset support.
       
    61         * @aParam aParam Charset support.
       
    62         */
       
    63         static inline void SetCharSetSupport( TMsvEntry& aEntry, TUniMessageCharSetSupport aParam );
       
    64 
       
    65         /**
       
    66         * If the message type of the entry is locked.
       
    67         * @return ETrue if the message type of the entry is locked.
       
    68         */
       
    69         static inline TBool IsMessageTypeLocked( const TMsvEntry& aEntry );
       
    70         
       
    71         /**
       
    72         * Mutator for setting the message type of the entry locked.
       
    73         * @aParam aParam ETrue if the message type of the entry is locked.
       
    74         */
       
    75         static inline void SetMessageTypeLocked( TMsvEntry& aEntry, TBool aParam );
       
    76 
       
    77         /**
       
    78         * If the message entry is a forwarded message.
       
    79         * @return ETrue if the entry is a forwarded message.
       
    80         */
       
    81         static inline TBool IsForwardedMessage( const TMsvEntry& aEntry );
       
    82         
       
    83         /**
       
    84         * Mutator for forwarded message flag.
       
    85         * @aParam aParam ETrue if the entry is a forwarded message.
       
    86         */
       
    87         static inline void SetForwardedMessage( TMsvEntry& aEntry, TBool aParam );
       
    88 
       
    89         /**
       
    90         * If the message entry is an editor-oriented message.
       
    91         * @return ETrue if the entry is an editor-oriented message.
       
    92         */
       
    93         static inline TBool IsEditorOriented( const TMsvEntry& aEntry );
       
    94         
       
    95         /**
       
    96         * Mutator for editor-oriented message flag.
       
    97         * @aParam aParam ETrue if the entry is an editor-oriented message.
       
    98         */
       
    99         static inline void SetEditorOriented( TMsvEntry& aEntry, TBool aParam );
       
   100 
       
   101         /**
       
   102         * If the message entry is a "MMS Upload" message.
       
   103         * @return ETrue if the entry is a "MMS Upload" message.
       
   104         */
       
   105         static inline TBool IsMmsUpload( const TMsvEntry& aEntry );
       
   106         
       
   107         /**
       
   108         * Mutator for "MMS Upload" identifier.
       
   109         * @aParam aParam ETrue if the entry is a "MMS Upload" message.
       
   110         */
       
   111         static inline void SetMmsUpload( TMsvEntry& aEntry, TBool aParam );
       
   112 
       
   113     };
       
   114 
       
   115 #include <unimsventry.inl>
       
   116 
       
   117 #endif      // __UNIMSVENTRY_H
       
   118             
       
   119 // End of File