diff -r d9aefe59d544 -r 3075d9b614e6 camerauis/cameraxui/cxengine/inc/cxediskmonitorprivate.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/camerauis/cameraxui/cxengine/inc/cxediskmonitorprivate.h Thu May 13 21:30:19 2010 +0300 @@ -0,0 +1,66 @@ +/* +* 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 CXEDISKMONITORPRIVATE_H +#define CXEDISKMONITORPRIVATE_H + +#include +#include +#ifdef Q_OS_SYMBIAN +#include +#endif // Q_OS_SYMBIAN + +class CxeSettings; + +class CxeDiskMonitorPrivate : public QObject +{ + Q_OBJECT + + // Owner of this private implementation. + friend class CxeDiskMonitor; + +private: + explicit CxeDiskMonitorPrivate(CxeSettings &settings); + ~CxeDiskMonitorPrivate(); + +signals: + void diskSpaceLow(); + void diskSpaceChanged(); + +private slots: + void checkSpace(); + +private: + void setLowWarningLevel(qint64 bytes); + void start(); + void stop(); + bool isMonitoring() const; + qint64 free(bool cached = true) const; + +private: + CxeSettings &mSettings; + QTimer mTimer; +#ifdef Q_OS_SYMBIAN + RFs& mFs; + int mCameraDrive; +#endif // Q_OS_SYMBIAN + qint64 mTriggerLevelBytes; + qint64 mLatestFreeBytes; +}; + + +#endif // CXEDISKMONITORPRIVATE_H