messagingapp/msgui/unifiededitor/inc/msgunieditorattachmentcontainer.h
changeset 76 60a8a215b0ec
parent 56 f42d9a78f435
--- a/messagingapp/msgui/unifiededitor/inc/msgunieditorattachmentcontainer.h	Tue Oct 05 13:58:47 2010 +0530
+++ b/messagingapp/msgui/unifiededitor/inc/msgunieditorattachmentcontainer.h	Tue Oct 19 11:30:16 2010 +0530
@@ -17,13 +17,13 @@
 #ifndef MSG_UNIFIED_EDITOR_ATTACHMENT_CONTAINER_H
 #define MSG_UNIFIED_EDITOR_ATTACHMENT_CONTAINER_H
 
-#include <HbWidget>
+#include <msgunieditorbasewidget.h>
 #include "msgunieditorattachment.h"
 
 class QGraphicsLinearLayout;
 class MmsConformanceCheck;
 
-class MsgAttachmentContainer : public HbWidget
+class MsgAttachmentContainer : public MsgUnifiedEditorBaseWidget
     {
     Q_OBJECT
 
@@ -78,12 +78,15 @@
      * @return size
      */
     int containerSize();
+    
+    /**
+     * check if given file name is in use or not.
+     * @param fileName, file name under queation
+     * @return true/false if in use/not use.
+     */
+    bool fileNameInUse(const QString& fileName);
 
 signals:
-    /**
-     * emit when container content changes
-     */
-    void contentChanged();
 
     /**
      * emit to indicate view that container is now empty
@@ -98,12 +101,6 @@
     void deleteAttachment(MsgUnifiedEditorAttachment* attachment);
     
 private:
-    /**
-     * size of the msg
-     */
-    int messageSize();
-    
-private:
     
     /**
      * container's layout
@@ -124,6 +121,10 @@
      * flag to tell, if container is holding MM content
      */
     bool mIsMMContent;
+    
+#ifdef UNIEDITOR_UNIT_TEST
+    friend class TestMsgAttachmentContainer;
+#endif
     };
 
 #endif // MSG_UNIFIED_EDITOR_ATTACHMENT_CONTAINER_H