michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: %{ C++ michael@0: #ifdef XP_WIN michael@0: #undef GetFreeSpace michael@0: #endif michael@0: %} michael@0: michael@0: [scriptable, uuid(3aceba74-2ed5-4e99-8fe4-06e90e2b8ef0)] michael@0: interface nsIDiskSpaceWatcher : nsISupports michael@0: { michael@0: readonly attribute bool isDiskFull; // True if we are low on disk space. michael@0: readonly attribute unsigned long long freeSpace; // The free space currently available. michael@0: }; michael@0: michael@0: %{ C++ michael@0: #define DISKSPACEWATCHER_CONTRACTID "@mozilla.org/toolkit/disk-space-watcher;1" michael@0: michael@0: // The data for this notification will be either 'free' or 'full'. michael@0: #define DISKSPACEWATCHER_OBSERVER_TOPIC "disk-space-watcher" michael@0: %}