Changeset View
Changeset View
Standalone View
Standalone View
src/Platforms/PlatformKWinWayland.h
Show All 39 Lines | 27 | { | |||
---|---|---|---|---|---|
40 | 40 | | |||
41 | void doGrab(Platform::ShutterMode theShutterMode, Platform::GrabMode theGrabMode, bool theIncludePointer, bool theIncludeDecorations) override final; | 41 | void doGrab(Platform::ShutterMode theShutterMode, Platform::GrabMode theGrabMode, bool theIncludePointer, bool theIncludeDecorations) override final; | ||
42 | 42 | | |||
43 | private: | 43 | private: | ||
44 | 44 | | |||
45 | void startReadImage(int theReadPipe); | 45 | void startReadImage(int theReadPipe); | ||
46 | template <typename ArgType> void doGrabHelper(const QString &theGrabMethod, ArgType theArgument); | 46 | template <typename ArgType> void doGrabHelper(const QString &theGrabMethod, ArgType theArgument); | ||
47 | template <typename ArgType> void callDBus(const QString &theGrabMethod, ArgType theArgument, int theWriteFile); | 47 | template <typename ArgType> void callDBus(const QString &theGrabMethod, ArgType theArgument, int theWriteFile); | ||
48 | template <typename ArgType, typename ArgType2> void doGrabHelper(const QString &theGrabMethod, ArgType theArgument, ArgType2 theSecondArgument); | ||||
49 | template <typename ArgType, typename ArgType2> void callDBus(const QString &theGrabMethod, ArgType theArgument, ArgType2 theSecondArgument, int theWriteFile); | ||||
davidre: Can we avoid the duplication? I guess parameter packs seem a bit like overkill? | |||||
48 | }; | 50 | }; |
Can we avoid the duplication? I guess parameter packs seem a bit like overkill?