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