kwin/autotests
Martin Gräßlin b45eeae352 [Xcb::Wrapper] Introduce a Property and StringProperty Wrapper subclass
The Xcb::Property can wrap the xcb_get_property call and provides
convenient access methods to read the value of the reply with checks
applied. For this it provides a templated ::value method for reading a
single value or reading an array. There's also a ::toBool and
::toByteArray which performs the conversion directly with default values
for the type and format checks.

Xcb::TransientFor is changed to be derived from Property instead of
Wrapper directly, so that the reading of the property value can be
shared.

Xcb::StringProperty is a convenient wrapper derived from Property to
handle the reading of a string property providing a cast to QByteArray
operator. This replaces the ::getStringProperty from utils. Though the
separator functionality from ::getStringProperty is not provided as that
is only used in one function and handled there.

All the custom usages of xcb_get_property or getStringProperty are
replaced to use this new wrapper. That simplifies the code and ensures
that all properties are read in the same way.

REVIEW: 117574
2014-04-17 07:41:33 +02:00
..
CMakeLists.txt Use KWindowInfo::clientMachine in ClientMachine::resolve 2014-04-10 15:55:17 +02:00
fakeeffectplugin.cpp [kwin] Add a PluginEffectLoader 2014-03-28 14:04:54 +01:00
fakeeffectplugin.json [kwin] Add a PluginEffectLoader 2014-03-28 14:04:54 +01:00
fakeeffectplugin_version.cpp [kwin] Adapt to KPluginFactory change 2014-03-28 19:50:46 +00:00
fakeeffectplugin_version.json [kwin] Add a PluginEffectLoader 2014-03-28 14:04:54 +01:00
mock_effectshandler.cpp [kwin] Introduce a new Effect Loading mechanism 2014-03-28 14:04:54 +01:00
mock_effectshandler.h [effects] Get xcb_connection_t* and rootWindow through EffectsHandler API 2014-04-16 16:05:05 +02:00
test_builtin_effectloader.cpp [kwin] Move finding of scripted effect source file to ScriptedEffect 2014-03-28 14:04:54 +01:00
test_client_machine.cpp Use KWindowInfo::clientMachine in ClientMachine::resolve 2014-04-10 15:55:17 +02:00
test_plugin_effectloader.cpp [kwin] Add a PluginEffectLoader 2014-03-28 14:04:54 +01:00
test_screen_paint_data.cpp [kwin] Rename tests subdirectories to autotests 2014-01-30 11:01:59 +01:00
test_scripted_effectloader.cpp [kwin] Add a ScriptedEffectLoader 2014-03-28 14:04:54 +01:00
test_virtual_desktops.cpp Switch virtual desktops with ctrl+alt+mouse wheel 2014-03-19 14:14:56 +01:00
test_window_paint_data.cpp [kwin] Rename tests subdirectories to autotests 2014-01-30 11:01:59 +01:00
test_xcb_window.cpp [kwin] Rename tests subdirectories to autotests 2014-01-30 11:01:59 +01:00
test_xcb_wrapper.cpp [Xcb::Wrapper] Introduce a Property and StringProperty Wrapper subclass 2014-04-17 07:41:33 +02:00
testutils.h [kwin] Rename tests subdirectories to autotests 2014-01-30 11:01:59 +01:00