2012-05-25 08:03:34 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#ifndef mozilla_system_automountersetting_h__
|
|
|
|
#define mozilla_system_automountersetting_h__
|
|
|
|
|
|
|
|
#include "nsIObserver.h"
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace system {
|
|
|
|
|
|
|
|
class ResultListener;
|
|
|
|
|
|
|
|
class AutoMounterSetting : public nsIObserver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIOBSERVER
|
|
|
|
|
|
|
|
AutoMounterSetting();
|
|
|
|
virtual ~AutoMounterSetting();
|
2013-05-14 04:53:23 +04:00
|
|
|
|
|
|
|
static void CheckVolumeSettings(const nsACString& aVolumeName);
|
2013-10-18 02:41:46 +04:00
|
|
|
|
|
|
|
int32_t GetStatus() { return mStatus; }
|
|
|
|
void SetStatus(int32_t aStatus);
|
|
|
|
const char *StatusStr(int32_t aStatus);
|
|
|
|
|
|
|
|
private:
|
|
|
|
int32_t mStatus;
|
2012-05-25 08:03:34 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace system
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_system_automountersetting_h__
|
|
|
|
|