2008-04-20 07:20:57 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=2:tabstop=2:
|
|
|
|
*/
|
2012-05-21 11:12:37 +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/. */
|
2008-04-20 07:20:57 +00:00
|
|
|
|
|
|
|
#ifndef __nsQtRemoteService_h__
|
|
|
|
#define __nsQtRemoteService_h__
|
|
|
|
|
2010-08-07 07:18:43 +00:00
|
|
|
#include "nsXRemoteService.h"
|
|
|
|
#include <X11/Xlib.h>
|
2008-04-20 07:20:57 +00:00
|
|
|
|
2010-08-07 07:18:43 +00:00
|
|
|
class RemoteEventHandlerWidget;
|
2008-04-20 07:20:57 +00:00
|
|
|
|
2010-08-07 07:18:43 +00:00
|
|
|
class nsQtRemoteService : public nsXRemoteService
|
2008-04-20 07:20:57 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
// We will be a static singleton, so don't use the ordinary methods.
|
|
|
|
NS_DECL_ISUPPORTS
|
2010-08-07 07:18:43 +00:00
|
|
|
NS_DECL_NSIREMOTESERVICE
|
2008-04-20 07:20:57 +00:00
|
|
|
|
2010-08-07 07:18:43 +00:00
|
|
|
nsQtRemoteService();
|
2014-02-21 02:09:02 +00:00
|
|
|
virtual ~nsQtRemoteService() { };
|
2008-04-20 07:20:57 +00:00
|
|
|
|
|
|
|
private:
|
2010-08-07 07:18:43 +00:00
|
|
|
virtual void SetDesktopStartupIDOrTimestamp(const nsACString& aDesktopStartupID,
|
2012-08-22 15:56:38 +00:00
|
|
|
uint32_t aTimestamp);
|
2010-08-07 07:18:43 +00:00
|
|
|
|
|
|
|
void PropertyNotifyEvent(XEvent *evt);
|
|
|
|
friend class MozQRemoteEventHandlerWidget;
|
|
|
|
|
2014-02-21 02:09:02 +00:00
|
|
|
QWindow *mServerWindow;
|
2008-04-20 07:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __nsQtRemoteService_h__
|