messagingfw/deprecate/send_ui_datautils_api/inc/SendUiDataUtils.h
branchRCL_3
changeset 22 d2c4c66342f3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/messagingfw/deprecate/send_ui_datautils_api/inc/SendUiDataUtils.h	Tue Aug 31 15:41:11 2010 +0300
@@ -0,0 +1,100 @@
+/*
+* 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 "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:   Utility class for SendUI.
+*
+*/
+
+
+
+
+#ifndef CSENDUIDATAUTILS_H
+#define CSENDUIDATAUTILS_H
+
+//  INCLUDES
+#include    <e32base.h>
+#include    <f32file.h>
+#include    <apmstd.h>
+#include    <msgmimetypes.h>
+
+class CSendingServiceInfo;
+// CONSTANTS
+_LIT8( KSenduiAudioPattern,    "*audio/*" );
+_LIT8( KSenduiVideoPattern,    "*video/*" );
+
+// FORWARD DECLARATION
+class RApaLsSession;
+
+// CLASS DECLARATION
+
+/**
+*  Utility class for SendUI.
+*
+*  @lib SenduiDataUtils.lib
+*  @since Series 60 3.0
+*/
+NONSHARABLE_CLASS (CSendUiDataUtils) : public CBase
+    {
+    public:  // Constructors and destructor
+        
+        /**
+        * Two-phased constructor.
+        */
+        IMPORT_C static CSendUiDataUtils* NewL( RFs& aFs );
+
+        /**
+        * Destructor.
+        */
+        virtual ~CSendUiDataUtils();
+
+   public: // New functions
+
+        /**
+        * Resolves mime types for 
+        * @since Series ?XX ?SeriesXX_version
+        * @param aTotalSize Return value contains total size of confirmed files
+        * @return None.
+        */
+        IMPORT_C void ResolveFileMimeTypeL(
+            const TDesC& aFilePath,
+            TDataType& aMimeType );
+
+        /**
+        * ?member_description.
+        * @since Series ?XX ?SeriesXX_version
+        * @param aTotalSize Return value contains total size of confirmed files
+        * @return None.
+        */
+        IMPORT_C void ResolveFileMimeTypeL(
+            const RFile& aFile,
+            TDataType& aMimeType );
+
+    private:
+
+     /**
+        * C++ default constructor.
+        */
+        CSendUiDataUtils( RFs& aFs );
+    
+    private:
+
+        // Reference to an open fileserver session
+        RFs& iFs;
+        
+        RApaLsSession* iApaLsSession;
+
+    };
+
+#endif      // CSENDUIDATAUTILS_H   
+            
+// End of File