filemanager/src/inc/fmdefine.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 23 Jun 2010 18:03:11 +0300
changeset 29 b3155376f2b4
parent 21 15299bc55001
child 30 6e96d2143d46
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* 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: 
*
*/
#ifndef FMDEFINE_H
#define FMDEFINE_H

// define for filemanager error
#define  FmErrNone                       0
#define  FmErrNotFound                  -1
#define  FmErrGeneral                   -2
#define  FmErrAlreadyExists             -3
#define  FmErrAccessDenied              -4
#define  FmErrCannotRemove              -5
#define  FmErrCannotCopy                -6
#define  FmErrDiskFull                  -7
#define  FmErrFileUsed                  -8
#define  FmErrFolderUsed                -9
#define  FmErrTypeFormatFailed          -10
#define  FmErrTypeFormatFailedUsed      -11
#define  FmErrAlreadyStarted            -12
#define  FmErrCancel                    -13
#define  FmErrWrongParam                -14
#define  FmErrUnKnown                   -15
#define  FmErrIsNotFileOrFolder         -16
#define  FmErrCannotMakeDir             -17
#define  FmErrSrcPathDoNotExist         -18
#define  FmErrDestPathDoNotExist        -19
#define  FmErrCopyDestToSubFolderInSrc  -20
#define  FmErrMoveDestToSubFolderInSrc  -21
#define  FmErrNotSupported              -22
#define  FmErrNotReady                  -23
#define  FmErrInUse                     -24
#define  FmErrPermissionDenied          -25
#define  FmErrBadName                   -26
#define  FmErrPathNotFound              -27
#define  FmErrRemoveDefaultFolder       -28
#define  FmErrLocked                    -29
#define  FmErrCorrupt                   -30
#define  FmErrDisMounted                -31

#define FmEstimateUpperLimit 90 // available mem/backup size*100%=90%, User selectable continuation
#define FmEstimateLowerLimit 10 // available mem/backup size*100%=10%, Backup will be interrupted

#define FmPlaceholderString " " // Placeholder for HbLabel because layout will be wrong when HbLabel is empty

#define Drive_C QString( "C:" ) + QDir::separator() 
#define Drive_D QString( "D:" ) + QDir::separator()
#define Drive_Z QString( "Z:" ) + QDir::separator()
#define Folder_C_Data QString( "C:" ) + QDir::separator() + QString( "Data" ) + QDir::separator()

#define FmMaxLengthofDriveName           11
#define FmMaxLengthofDrivePassword       8

#endif