messagingfw/deprecate/send_ui_api/inc/TSendingCapabilities.h
branchRCL_3
changeset 22 d2c4c66342f3
equal deleted inserted replaced
21:e5b3a2155e1a 22:d2c4c66342f3
       
     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:   Sending capabilities for sending services. Used by SendUi to
       
    15 *                filter sending services from "Send" pop-up list query.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef TSENDINGCAPABILITIES_H
       
    23 #define TSENDINGCAPABILITIES_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <e32base.h>
       
    27 
       
    28 // MACROS
       
    29 #define KCapabilitiesForAllServices TSendingCapabilities::CapabilitiesForAllServices()
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  Sending capabilities for sending services.
       
    35 *  Used by SendUi to filter sending services from "Send" pop-up list query.
       
    36 *
       
    37 *  @lib CSendUi.lib
       
    38 *  @since Series 60 3.0
       
    39 */
       
    40 class TSendingCapabilities
       
    41     {
       
    42     public:
       
    43 
       
    44     enum TSendingFlags
       
    45         {
       
    46         EAllServices = 0,
       
    47         ESupportsAttachments = 1,
       
    48         ESupportsBodyText = 2,
       
    49         ESupportsBioSending = 4,
       
    50         ESupportsEditor = 8
       
    51         };
       
    52 
       
    53     public:  // Constructors and destructor
       
    54 
       
    55         /**
       
    56         * Default C++ constructor
       
    57         */
       
    58         IMPORT_C TSendingCapabilities();
       
    59         
       
    60         /**
       
    61         * C++ constructor
       
    62         * @param aBodySize Maximum body size.
       
    63         * @param aMessageSize Maximum whole message size (inc. attachments).
       
    64         * @param aFlags: TSendingFlags.
       
    65         */
       
    66         IMPORT_C TSendingCapabilities( 
       
    67             TInt aBodySize,
       
    68             TInt aMessageSize,
       
    69             TInt aFlags );
       
    70         
       
    71     public:  // New functions
       
    72 
       
    73         static inline TSendingCapabilities CapabilitiesForAllServices();
       
    74 
       
    75         /**
       
    76         * Overloaded equal operator.
       
    77         * @param aSendingCapabilities Sending capabilities to be compared
       
    78         * @return ETrue if equal, otherwise, EFalse
       
    79         */
       
    80         IMPORT_C TBool operator==(
       
    81             const TSendingCapabilities& aSendingCapabilities ) const;
       
    82 
       
    83         /**
       
    84         * Overloaded not equal operator.
       
    85         * @param aSendingCapabilities Sending capabilities to be compared
       
    86         * @return ETrue if not equal, otherwise, EFalse
       
    87         */
       
    88         IMPORT_C TBool operator!=(
       
    89             const TSendingCapabilities& aSendingCapabilities ) const;
       
    90 
       
    91     public:
       
    92         
       
    93         TInt iBodySize;
       
    94         TInt iMessageSize;
       
    95         TInt iFlags;
       
    96     };
       
    97 
       
    98 #include "TSendingCapabilities.inl"
       
    99 
       
   100 #endif      // TSENDINGCAPABILITIES_H  
       
   101             
       
   102 // End of File
       
   103