1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/system/gnome/nsGConfService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsGConfService_h_ 1.10 +#define nsGConfService_h_ 1.11 + 1.12 +#include "nsIGConfService.h" 1.13 +#include "gconf/gconf-client.h" 1.14 +#include "mozilla/Attributes.h" 1.15 + 1.16 +#define NS_GCONFSERVICE_CID \ 1.17 +{0xd96d5985, 0xa13a, 0x4bdc, {0x93, 0x86, 0xef, 0x34, 0x8d, 0x7a, 0x97, 0xa1}} 1.18 + 1.19 +class nsGConfService MOZ_FINAL : public nsIGConfService 1.20 +{ 1.21 +public: 1.22 + NS_DECL_ISUPPORTS 1.23 + NS_DECL_NSIGCONFSERVICE 1.24 + 1.25 + nsGConfService() : mClient(nullptr) {} 1.26 + NS_HIDDEN_(nsresult) Init(); 1.27 + 1.28 +private: 1.29 + ~nsGConfService() NS_HIDDEN; 1.30 + 1.31 + GConfClient *mClient; 1.32 +}; 1.33 + 1.34 +#endif