epoc32/include/mw/tsendingcapabilities.h
author William Roberts <williamr@symbian.org>
Tue, 16 Mar 2010 16:12:26 +0000
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
permissions -rw-r--r--
Final list of Symbian^2 public API header files
     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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.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