filemanager/src/filemanager/src/operationservice/fmoperationformat_win.cpp
changeset 16 ada7962b4308
child 32 39cf9ced4cc4
child 35 060d0b1ab845
child 37 15bc28c9dd51
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/filemanager/src/filemanager/src/operationservice/fmoperationformat_win.cpp	Mon May 03 12:24:39 2010 +0300
@@ -0,0 +1,54 @@
+/*
+* Copyright (c) 2009 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: 
+*
+*/
+
+#include "fmoperationformat.h"
+#include "fmcommon.h"
+#include "fmoperationbase.h"
+#include "fmutils.h"
+
+#include <QString>
+
+FmOperationFormat::FmOperationFormat( QObject *parent, QString mDriverName ) : FmOperationBase( parent, FmOperationService::EOperationTypeFormat ),
+    mDriverName( mDriverName )
+{
+}
+FmOperationFormat::~FmOperationFormat()
+{
+}
+
+QString FmOperationFormat::driverName()
+{
+    return mDriverName;
+}
+
+int FmOperationFormat::start()
+{ 
+    QString logString = "FmOperationFormat::start";
+    FmLogger::log( logString );
+    
+    if( mDriverName.isEmpty() ) {
+        return FmErrWrongParam;
+    }
+    int totalCount( 100 );
+    emit notifyStart( totalCount, false );
+    for( int i = 0; i < totalCount; i++ ) {
+        emit notifyProgress( i );
+    }
+
+    return FmErrNone;
+
+}