epoc32/include/mw/tsendingcapabilities.h
branchSymbian2
changeset 2 2fe1408b6811
parent 1 666f914201fb
child 4 837f303aceeb
     1.1 --- a/epoc32/include/mw/tsendingcapabilities.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/mw/tsendingcapabilities.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,103 @@
     1.4 -tsendingcapabilities.h
     1.5 +/*
     1.6 +* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
     1.7 +* All rights reserved.
     1.8 +* This component and the accompanying materials are made available
     1.9 +* 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
    1.10 +* which accompanies this distribution, and is available
    1.11 +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.12 +*
    1.13 +* Initial Contributors:
    1.14 +* Nokia Corporation - initial contribution.
    1.15 +*
    1.16 +* Contributors:
    1.17 +*
    1.18 +* Description:   Sending capabilities for sending services. Used by SendUi to
    1.19 +*                filter sending services from "Send" pop-up list query.
    1.20 +*
    1.21 +*/
    1.22 +
    1.23 +
    1.24 +
    1.25 +
    1.26 +#ifndef TSENDINGCAPABILITIES_H
    1.27 +#define TSENDINGCAPABILITIES_H
    1.28 +
    1.29 +//  INCLUDES
    1.30 +#include <e32base.h>
    1.31 +
    1.32 +// MACROS
    1.33 +#define KCapabilitiesForAllServices TSendingCapabilities::CapabilitiesForAllServices()
    1.34 +
    1.35 +// CLASS DECLARATION
    1.36 +
    1.37 +/**
    1.38 +*  Sending capabilities for sending services.
    1.39 +*  Used by SendUi to filter sending services from "Send" pop-up list query.
    1.40 +*
    1.41 +*  @lib CSendUi.lib
    1.42 +*  @since Series 60 3.0
    1.43 +*/
    1.44 +class TSendingCapabilities
    1.45 +    {
    1.46 +    public:
    1.47 +
    1.48 +    enum TSendingFlags
    1.49 +        {
    1.50 +        EAllServices = 0,
    1.51 +        ESupportsAttachments = 1,
    1.52 +        ESupportsBodyText = 2,
    1.53 +        ESupportsBioSending = 4,
    1.54 +        ESupportsEditor = 8
    1.55 +        };
    1.56 +
    1.57 +    public:  // Constructors and destructor
    1.58 +
    1.59 +        /**
    1.60 +        * Default C++ constructor
    1.61 +        */
    1.62 +        IMPORT_C TSendingCapabilities();
    1.63 +        
    1.64 +        /**
    1.65 +        * C++ constructor
    1.66 +        * @param aBodySize Maximum body size.
    1.67 +        * @param aMessageSize Maximum whole message size (inc. attachments).
    1.68 +        * @param aFlags: TSendingFlags.
    1.69 +        */
    1.70 +        IMPORT_C TSendingCapabilities( 
    1.71 +            TInt aBodySize,
    1.72 +            TInt aMessageSize,
    1.73 +            TInt aFlags );
    1.74 +        
    1.75 +    public:  // New functions
    1.76 +
    1.77 +        static inline TSendingCapabilities CapabilitiesForAllServices();
    1.78 +
    1.79 +        /**
    1.80 +        * Overloaded equal operator.
    1.81 +        * @param aSendingCapabilities Sending capabilities to be compared
    1.82 +        * @return ETrue if equal, otherwise, EFalse
    1.83 +        */
    1.84 +        IMPORT_C TBool operator==(
    1.85 +            const TSendingCapabilities& aSendingCapabilities ) const;
    1.86 +
    1.87 +        /**
    1.88 +        * Overloaded not equal operator.
    1.89 +        * @param aSendingCapabilities Sending capabilities to be compared
    1.90 +        * @return ETrue if not equal, otherwise, EFalse
    1.91 +        */
    1.92 +        IMPORT_C TBool operator!=(
    1.93 +            const TSendingCapabilities& aSendingCapabilities ) const;
    1.94 +
    1.95 +    public:
    1.96 +        
    1.97 +        TInt iBodySize;
    1.98 +        TInt iMessageSize;
    1.99 +        TInt iFlags;
   1.100 +    };
   1.101 +
   1.102 +#include "TSendingCapabilities.inl"
   1.103 +
   1.104 +#endif      // TSENDINGCAPABILITIES_H  
   1.105 +            
   1.106 +// End of File
   1.107 +