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