pragma once works well but it may not work on older compiler.
I changed it for stability and versatility.
Change-Id: I6d44fb970a47345516106cc4dcf698d98de1be94
*
*/
-#pragma once
+#ifndef _A11Y_EVENT_H_
+#define _A11Y_EVENT_H_
#include "bitmask.h"
#include <string>
class A11yEventInfo {
public:
- A11yEventInfo();
- A11yEventInfo(A11yEvent event, std::string name = "", std::string pkg = "");
- A11yEventInfo(std::string event, std::string name = "", std::string pkg = "");
- ~A11yEventInfo();
+ A11yEventInfo();
+ A11yEventInfo(A11yEvent event, std::string name = "", std::string pkg = "");
+ A11yEventInfo(std::string event, std::string name = "", std::string pkg = "");
+ ~A11yEventInfo();
public:
- A11yEvent getEvent();
+ A11yEvent getEvent();
A11yEvent getEvent(std::string event);
- std::string getName();
- std::string getPkg();
+ std::string getName();
+ std::string getPkg();
protected:
- const A11yEvent mEvent;
- const std::string mName;
- const std::string mPkg;
+ const A11yEvent mEvent;
+ const std::string mName;
+ const std::string mPkg;
};
+#endif
*
*/
-#pragma once
+#ifndef _ACCESSIBLE_H_
+#define _ACCESSIBLE_H_
#include "AccessibleNode.h"
#include "AccessibleWatcher.h"
#include "AccessibleWindow.h"
#include "IEventConsumer.h"
#include "IEventSource.h"
+
+#endif
*
*/
-#pragma once
+#ifndef _ACCESSIBLE_APPLICATION_H_
+#define _ACCESSIBLE_APPLICATION_H_
#include "AccessibleWindow.h"
#include "AccessibleNode.h"
std::shared_ptr<AccessibleNode> mNode;
};
+#endif
*
*/
-#pragma once
+#ifndef _ACCESSIBLE_NODE_H_
+#define _ACCESSIBLE_NODE_H_
#include <map>
#include <memory>
*/
mutable std::mutex mLock;
};
+
+#endif
\ No newline at end of file
*
*/
-#pragma once
+#ifndef _ACCESSIBLE_WATCHER_H_
+#define _ACCESSIBLE_WATCHER_H_
#include "AccessibleApplication.h"
#include "AccessibleWindow.h"
*/
std::mutex mLock;
};
+
+#endif
\ No newline at end of file
*
*/
-#pragma once
+#ifndef _ACCESSIBLE_WINDOW_H_
+#define _ACCESSIBLE_WINDOW_H_
#include "AccessibleNode.h"
* @brief TBD
*/
std::shared_ptr<AccessibleNode> mNode;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _IEVENT_CONSUMER_H_
+#define _IEVENT_CONSUMER_H_
enum class EventType {
none = 0,
virtual ~IEventConsumer() {};
virtual void notify(int type, int type2, void *src) = 0;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _IEVENT_SOURCE_H_
+#define _IEVENT_SOURCE_H_
#include "IEventConsumer.h"
#include <memory>
virtual void detach(std::shared_ptr<IEventConsumer> source) = 0;
virtual void notifyAll(int type, int type2, void *src) = 0;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _AURUM_H_
+#define _AURUM_H_
#include <dlog.h>
#include "Comparer.h"
#include "A11yEvent.h"
#include "Runnables.h"
+
+#endif
*
*/
-#pragma once
+#ifndef _COMPARER_H_
+#define _COMPARER_H_
#include "config.h"
* @brief TBD
*/
bool mEarlyReturn;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _ATSPI_ACCESSIBLE_APPLICATION_H_
+#define _ATSPI_ACCESSIBLE_APPLICATION_H_
#include "AccessibleApplication.h"
* @since_tizen 6.0
*/
std::string getPackageName(void) override;
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
*
*/
-#pragma once
+#ifndef _ATSPI_ACCESSIBLE_NODE_H_
+#define _ATSPI_ACCESSIBLE_NODE_H_
#include "AccessibleNode.h"
#include <atspi/atspi.h>
*/
AtspiAccessible *mNode;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _ATSPI_ACCESSIBLE_WATCHER_H_
+#define _ATSPI_ACCESSIBLE_WATCHER_H_
#include "AccessibleNode.h"
#include "AccessibleWatcher.h"
static std::mutex mMutex;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _ATSPI_ACCESSIBLE_WINDOW_H_
+#define _ATSPI_ACCESSIBLE_WINDOW_H_
#include "AccessibleWindow.h"
*/
~AtspiAccessibleWindow();
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _ATSPI_WRAPPER_H_
+#define _ATSPI_WRAPPER_H_
#include <atspi/atspi.h>
#include <mutex>
static std::recursive_mutex mMutex;
//static std::unique_lock<std::mutex> mLock;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _MOCK_ACCESSIBLE_APPLICATION_H_
+#define _MOCK_ACCESSIBLE_APPLICATION_H_
#include "AccessibleApplication.h"
#include "MockAccessibleWindow.h"
* @brief TBD
*/
std::vector<std::shared_ptr<AccessibleWindow>> mWindowList;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _MOCK_ACCESSIBLE_NODE_H_
+#define _MOCK_ACCESSIBLE_NODE_H_
#include "AccessibleNode.h"
*/
std::mutex mLock;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _MOCK_ACCESSIBLE_WATCHER_H_
+#define _MOCK_ACCESSIBLE_WATCHER_H_
#include "AccessibleNode.h"
#include "AccessibleWatcher.h"
std::map<AtspiAccessible *, std::shared_ptr<AccessibleApplication>> mActiveAppMap;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _MOCK_ACCESSIBLE_WINDOW_H_
+#define _MOCK_ACCESSIBLE_WINDOW_H_
#include "AccessibleWindow.h"
#include "MockAccessibleNode.h"
* @brief TBD
*/
std::shared_ptr<MockAccessibleNode> mMockNode;
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
*
*/
-#pragma once
+#ifndef _MOCK_DEVICE_IMPL_H_
+#define _MOCK_DEVICE_IMPL_H_
#include "config.h"
#include "IDevice.h"
* @brief TBD
*/
Size2D<int> mScreenSize;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _TIZEN_DEVICE_IMPL_H_
+#define _TIZEN_DEVICE_IMPL_H_
#include "config.h"
#include "IDevice.h"
* @brief TBD
*/
Size2D<int> mScreenSize;
-};
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file
*
*/
-#pragma once
+#ifndef _IDEVICE_H_
+#define _IDEVICE_H_
#include "config.h"
#include "Rect.h"
* @since_tizen 6.5
*/
virtual const Size2D<int> getScreenSize() = 0;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _ISEARCHABLE_H_
+#define _ISEARCHABLE_H_
#include "config.h"
*/
virtual std::vector<std::shared_ptr<UiObject>> findObjects(
const std::shared_ptr<UiSelector> selector) const = 0;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _POINT2D_H_
+#define _POINT2D_H_
/**
* @brief Point2d Class
*/
T y;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _RECT_H_
+#define _RECT_H_
#include "Point2D.h"
*/
Point2D<T> mBottomRight;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _SIZE2D_H_
+#define _SIZE2D_H_
/**
* @brief Size2D Class.
T width;
T height;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _BITMASK_H_
+#define _BITMASK_H_
#include <type_traits>
return lhs;
}
+#endif
*
*/
-#pragma once
+#ifndef _PARTIAL_MATCH_H_
+#define _PARTIAL_MATCH_H_
#include <list>
#include <memory>
* @brief TBD
*/
std::list<std::shared_ptr<PartialMatch>> mPartialMatches;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _RUNNABLE_H_
+#define _RUNNABLE_H_
class Runnable
{
public:
- virtual ~Runnable() { }
- virtual void run() const = 0;
+ virtual ~Runnable() { }
+ virtual void run() const = 0;
};
+#endif
*
*/
-#pragma once
+#ifndef _RUNNABLES_H_
+#define _RUNNABLES_H_
#include "SendKeyRunnable.h"
+
+#endif
*
*/
-#pragma once
+#ifndef _SEND_KEY_RUNNABLE_H_
+#define _SEND_KEY_RUNNABLE_H_
#include <string>
class SendKeyRunnable : public Runnable {
protected:
- std::string mKeycode;
+ std::string mKeycode;
public:
SendKeyRunnable(std::string keycode);
void run() const override;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _SEL_H_
+#define _SEL_H_
#include "config.h"
#include <string>
#include "UiSelector.h"
+
/**
* @brief Sel class
* @since_tizen 5.5
* @since_tizen 5.5
*/
static std::shared_ptr<UiSelector> depth(int depth);
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _UI_DEVICE_H_
+#define _UI_DEVICE_H_
#include "config.h"
IDevice *mDeviceImpl;
const Waiter *mWaiter;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _UI_OBJECT_H_
+#define _UI_OBJECT_H_
#include "config.h"
*/
static const unsigned int LOGNCLICK_INTERVAL = 500;
};
+
+#endif
*
*/
-#pragma once
+#ifndef _UI_SCROLLABLE_H_
+#define _UI_SCROLLABLE_H_
#include "UiObject.h"
#include <memory>
* @brief TBD
*/
int mScrollStep;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _UI_SELECTOR_H_
+#define _UI_SELECTOR_H_
#include "config.h"
* @since_tizen 5.5
*/
std::shared_ptr<UiSelector> mParent;
-};
\ No newline at end of file
+};
+
+#endif
-#pragma once
+/*
+ * Copyright (c) 2021 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+#ifndef _UTIL_H_
+#define _UTIL_H_
#include <functional>
#include "ISearchable.h"
*/
static std::function<bool(const UiObject *)> checkable(
const bool isCheckable);
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _WAITER_H_
+#define _WAITER_H_
#include "ISearchable.h"
* @since_tizen 5.5
*/
const int WAIT_TIMEOUT_MS;
-};
\ No newline at end of file
+};
+
+#endif
*
*/
-#pragma once
+#ifndef _AURUM_SERVICE_IMPL_H_
+#define _AURUM_SERVICE_IMPL_H_
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
const ::aurum::ReqDumpObjectTree *request,
::aurum::RspDumpObjectTree *response) override;
};
+
+#endif
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
#include "ObjectMapper.h"
#include <aurum.grpc.pb.h>
#include "config.h"
+
class ClickCommand : public Command {
protected:
const ::aurum::ReqClick *mRequest;
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
+#ifndef _COMMAND_H_
+#define _COMMAND_H_
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
virtual ::grpc::Status executePost();
virtual ::grpc::Status executePre();
};
+
+#endif
*
*/
-#pragma once
-
#include "Commands/KillServerCommand.h"
#include "Commands/FindElementCommand.h"
*
*/
-#pragma once
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
-
#include <gio/gio.h>
#include <grpcpp/grpcpp.h>
#include "Commands/Command.h"
*
*/
-#pragma once
+#ifndef _OBJECT_MAPPER_H_
+#define _OBJECT_MAPPER_H_
#include <map>
#include <string>
bool removeElement(const std::string elementId);
void cleanUp();
};
+
+#endif
*
*/
-#pragma once
-
#include <string>
#include "Runnable.h"
*
*/
-#pragma once
+#ifndef _BOOT_STRAP_H_
+#define _BOOT_STRAP_H_
#include <dlog.h>
__FILE__, __func__, __LINE__, ##arg); \
} while (0); })
#endif
+
+#endif