struct Elem {
AtspiAccessiblePtr obj, parent;
Rectangle pos;
- bool hasRelation = false, isItem = false, isCollapsed = false, isDisabled = false;
+ bool hasRelation = false, isItem = false, isCollapsed = false;
};
struct All {
std::vector<AtspiAccessiblePtr> expandableElems, expandableAndExpandedElems;
#include "SwitchId.hpp"
-SwitchId::SwitchId(const std::string &localId, const std::string providerId)
+SwitchId::SwitchId(const std::string &localId, const std::string &providerId)
: localId(localId), providerId(providerId)
{}
return providerId + "_" + localId;
}
-std::string SwitchId::getLocalId() const
-{
- return localId;
-}
-
std::string SwitchId::getProviderId() const
{
return providerId;
class SwitchId
{
public:
- SwitchId(const std::string &localId, const std::string providerId);
+ SwitchId(const std::string &localId, const std::string &providerId);
bool operator==(const SwitchId &switchId) const;
std::string getGlobalId() const;
- std::string getLocalId() const;
std::string getProviderId() const;
private:
});
}
-double SwitchInteractionManager::getMinimalSwitchInteractionTime() const
-{
- return minimalSwitchInteractionTime;
-}
-
-double SwitchInteractionManager::getSwitchInteractionInterval() const
-{
- return switchInteractionInterval;
-}
-
-double SwitchInteractionManager::getNotificationRepetitionInterval() const
-{
- return notificationRepetitionInterval;
-}
-
void SwitchInteractionManager::registerAndGetStateAndValueVconfData(VConfInterface::CallbackHandle &stateHandler, const std::string &stateKey,
VConfInterface::CallbackHandle &valueHandler, const std::string &valueKey, double &value)
{
void startInteraction(const NotifyMethod &method, const std::shared_ptr<Switch> &sw);
void stopInteraction(const std::shared_ptr<Switch> &sw);
- double getMinimalSwitchInteractionTime() const;
- double getSwitchInteractionInterval() const;
- double getNotificationRepetitionInterval() const;
-
private:
ecore::TimerRepetitionPolicy unconditionallyStopInteraction();
ecore_main_loop_begin();
}
- static void addValues(std::map<int, int> &dst, std::map<int, int> &s1, std::map<int, int> &s2)
- {
- for (auto &a : s1)
- dst[a.first] = a.second + s2[a.first];
- }
- static void addValues(std::unordered_map<int, int> &dst, std::unordered_map<int, int> &s1, std::unordered_map<int, int> &s2)
- {
- for (auto &a : s1)
- dst[a.first] = a.second + s2[a.first];
- }
- static void addValues(std::vector<int> &dst, std::vector<int> &s1, std::vector<int> &s2)
- {
- dst.resize(s1.size());
- for (size_t i = 0; i < s1.size(); ++i) {
- dst[i] = s1[i] + s2[i];
- }
- }
- template <size_t I> static void addValues(std::array<int, I> &dst, std::array<int, I> &s1, std::array<int, I> &s2)
- {
- for (size_t i = 0; i < I; ++i) {
- dst[i] = s1[i] + s2[i];
- }
- }
template <typename T1, typename T2> static void compareValues(T1 src, T2 expected)
{
EXPECT_EQ(src.size(), expected.size());
{
auto connection = getDBusConnectionByType(DBus::ConnectionType::SYSTEM);
DBus::DBusInterfaceDescription dsc("itest.itest");
- std::unordered_map<std::string, int> values;
auto signalId = dsc.addSignal<int, int>("ftest");
DBus::DBusServer server{connection};