QGIS/src/native/qgsnative.h
Nyall Dawson 6efe160a65 Move QgsNative instance from app->QgsGui singleton
This allows gui widgets to utilise native platform interfaces.
Additionally attaching the instance to QgsGui allows QgsNative
to become a QObject in future if required and for use
of signals/slots in the native interfaces.
2017-05-15 09:56:52 +10:00

43 lines
1.5 KiB
C++

/***************************************************************************
qgsnative.h - abstracted interface to native system calls
-------------------
begin : January 2017
copyright : (C) 2017 by Matthias Kuhn
email : matthias@opengis.ch
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef QGSNATIVE_H
#define QGSNATIVE_H
#include "qgis_native.h"
/**
* \class QgsNative
* \ingroup native
* Base class for implementing methods for native system calls that
* are implemented in subclasses to provide platform abstraction.
* \since QGIS 3.0
*/
class NATIVE_EXPORT QgsNative
{
public:
virtual ~QgsNative() = default;
/**
* Brings the QGIS app to front. The default implementation does nothing.
*/
virtual void currentAppActivateIgnoringOtherApps();
};
#endif // QGSNATIVE_H