voipplugins/sipconnectionprovider/ipvoicemailengine/inc/ipvmbxparsetype.h
branchRCL_3
changeset 22 d38647835c2e
parent 0 a4daefaec16c
equal deleted inserted replaced
21:f742655b05bf 22:d38647835c2e
       
     1 /*
       
     2 * Copyright (c) 2008-2008 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:  Parsing options for optional data
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef TIPVMBXPARSETYPE_H
       
    21 #define TIPVMBXPARSETYPE_H
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 /**
       
    27  *  Parsing options for content
       
    28  *
       
    29  *  @lib ipvoicemailengine.dll
       
    30  */
       
    31 class TIpVmbxParseType
       
    32     {
       
    33 
       
    34 public:
       
    35 
       
    36     /**  Supported parse types */
       
    37     enum TParseTypes
       
    38         {
       
    39         EDetailTo,
       
    40         EDetailToShort,
       
    41         EDetailFrom,
       
    42         EDetailFromShort,
       
    43         EDetailSubject,
       
    44         EDetailSubjectShort,
       
    45         EDetailDate,
       
    46         EDetailPriority,
       
    47         EDetailId
       
    48         };
       
    49 
       
    50 
       
    51     /**
       
    52      * Constructor.
       
    53      *
       
    54      * @param aType Type to be parsed
       
    55      */
       
    56     TIpVmbxParseType( const TParseTypes aType );
       
    57 
       
    58     TIpVmbxParseType();
       
    59 
       
    60     /**
       
    61      * Tag this instance is presenting
       
    62      *
       
    63      * @return Tag
       
    64      */
       
    65     const TDesC8& Tag() const;
       
    66 
       
    67     /**
       
    68      * Tag this instance is presenting
       
    69      *
       
    70      * @return Tag
       
    71      */
       
    72     TInt32 ResourceId() const;
       
    73 
       
    74     /**
       
    75      * Set new tag
       
    76      *
       
    77      * @param aType Set different parse type
       
    78      */
       
    79     void Set( const TParseTypes aType );
       
    80 
       
    81 
       
    82 private: // data
       
    83 
       
    84     /**
       
    85      * Tag
       
    86      */
       
    87     const TDesC8* iTag;
       
    88 
       
    89     /**
       
    90      * Resource matching to tag
       
    91      */
       
    92     TInt32 iResourceId;
       
    93 
       
    94     };
       
    95 
       
    96 #include "ipvmbxparsetype.inl"
       
    97 
       
    98 #endif // TIPVMBXPARSETYPE_H