2012-05-25 04:03:34 +00: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 AutoMounterSetting : public nsIObserver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIOBSERVER
|
|
|
|
|
|
|
|
AutoMounterSetting();
|
2013-05-14 00:53:23 +00:00
|
|
|
|
|
|
|
static void CheckVolumeSettings(const nsACString& aVolumeName);
|
2013-10-17 22:41:46 +00:00
|
|
|
|
|
|
|
int32_t GetStatus() { return mStatus; }
|
|
|
|
void SetStatus(int32_t aStatus);
|
|
|
|
const char *StatusStr(int32_t aStatus);
|
|
|
|
|
2015-03-10 12:44:02 +00:00
|
|
|
protected:
|
|
|
|
virtual ~AutoMounterSetting();
|
|
|
|
|
2013-10-17 22:41:46 +00:00
|
|
|
private:
|
|
|
|
int32_t mStatus;
|
2012-05-25 04:03:34 +00:00
|
|
|
};
|
|
|
|
|
2015-07-13 15:25:42 +00:00
|
|
|
} // namespace system
|
|
|
|
} // namespace mozilla
|
2012-05-25 04:03:34 +00:00
|
|
|
|
|
|
|
#endif // mozilla_system_automountersetting_h__
|
|
|
|
|