--- a/epoc32/include/mw/tsendingcapabilities.h Tue Nov 24 13:55:44 2009 +0000
+++ b/epoc32/include/mw/tsendingcapabilities.h Tue Mar 16 16:12:26 2010 +0000
@@ -1,1 +1,103 @@
-tsendingcapabilities.h
+/*
+* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* 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
+* which accompanies this distribution, and is available
+* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description: Sending capabilities for sending services. Used by SendUi to
+* filter sending services from "Send" pop-up list query.
+*
+*/
+
+
+
+
+#ifndef TSENDINGCAPABILITIES_H
+#define TSENDINGCAPABILITIES_H
+
+// INCLUDES
+#include <e32base.h>
+
+// MACROS
+#define KCapabilitiesForAllServices TSendingCapabilities::CapabilitiesForAllServices()
+
+// CLASS DECLARATION
+
+/**
+* Sending capabilities for sending services.
+* Used by SendUi to filter sending services from "Send" pop-up list query.
+*
+* @lib CSendUi.lib
+* @since Series 60 3.0
+*/
+class TSendingCapabilities
+ {
+ public:
+
+ enum TSendingFlags
+ {
+ EAllServices = 0,
+ ESupportsAttachments = 1,
+ ESupportsBodyText = 2,
+ ESupportsBioSending = 4,
+ ESupportsEditor = 8
+ };
+
+ public: // Constructors and destructor
+
+ /**
+ * Default C++ constructor
+ */
+ IMPORT_C TSendingCapabilities();
+
+ /**
+ * C++ constructor
+ * @param aBodySize Maximum body size.
+ * @param aMessageSize Maximum whole message size (inc. attachments).
+ * @param aFlags: TSendingFlags.
+ */
+ IMPORT_C TSendingCapabilities(
+ TInt aBodySize,
+ TInt aMessageSize,
+ TInt aFlags );
+
+ public: // New functions
+
+ static inline TSendingCapabilities CapabilitiesForAllServices();
+
+ /**
+ * Overloaded equal operator.
+ * @param aSendingCapabilities Sending capabilities to be compared
+ * @return ETrue if equal, otherwise, EFalse
+ */
+ IMPORT_C TBool operator==(
+ const TSendingCapabilities& aSendingCapabilities ) const;
+
+ /**
+ * Overloaded not equal operator.
+ * @param aSendingCapabilities Sending capabilities to be compared
+ * @return ETrue if not equal, otherwise, EFalse
+ */
+ IMPORT_C TBool operator!=(
+ const TSendingCapabilities& aSendingCapabilities ) const;
+
+ public:
+
+ TInt iBodySize;
+ TInt iMessageSize;
+ TInt iFlags;
+ };
+
+#include "TSendingCapabilities.inl"
+
+#endif // TSENDINGCAPABILITIES_H
+
+// End of File
+