1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/toolkit/components/remote/nsQtRemoteService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 +/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* vim:expandtab:shiftwidth=2:tabstop=2: 1.6 + */ 1.7 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.10 + 1.11 +#ifndef __nsQtRemoteService_h__ 1.12 +#define __nsQtRemoteService_h__ 1.13 + 1.14 +#include "nsXRemoteService.h" 1.15 +#include <X11/Xlib.h> 1.16 + 1.17 +class RemoteEventHandlerWidget; 1.18 + 1.19 +class nsQtRemoteService : public nsXRemoteService 1.20 +{ 1.21 +public: 1.22 + // We will be a static singleton, so don't use the ordinary methods. 1.23 + NS_DECL_ISUPPORTS 1.24 + NS_DECL_NSIREMOTESERVICE 1.25 + 1.26 + nsQtRemoteService(); 1.27 + virtual ~nsQtRemoteService() { }; 1.28 + 1.29 +private: 1.30 + virtual void SetDesktopStartupIDOrTimestamp(const nsACString& aDesktopStartupID, 1.31 + uint32_t aTimestamp); 1.32 + 1.33 + void PropertyNotifyEvent(XEvent *evt); 1.34 + friend class MozQRemoteEventHandlerWidget; 1.35 + 1.36 + QWindow *mServerWindow; 1.37 +}; 1.38 + 1.39 +#endif // __nsQtRemoteService_h__