/*
- * ckm-manager
- *
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Contact: Bumjin Im <bj.im@samsung.com>
+ * Copyright (c) 2014 Samsung Electronics Co.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* 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
+ *
+ *
+ * @file listener-thread.h
+ * @author Dongseon Lee(ds72.lee@samsung.com)
+ * @version 1.0
+ * @brief Listener thread header file.
*/
+#pragma once
+
+#include <glib.h>
-#ifndef _SMACK_CHECK_H_
-#define _SMACK_CHECK_H_
namespace CKM {
-/*
- * A very simple runtime check for SMACK on the platform
- * Returns 1 if SMACK is present, 0 otherwise
- */
+class ListenerThread
+{
+public:
+ ListenerThread();
+ ListenerThread(const ListenerThread &) = delete;
+ ListenerThread(ListenerThread &&) = delete;
+ ListenerThread& operator=(const ListenerThread &) = delete;
+ ListenerThread& operator=(ListenerThread &&) = delete;
+ virtual ~ListenerThread();
-int smack_runtime_check(void);
+ virtual void start();
-/*
- * A very simple runtime check for SMACK on the platform
- * Returns 1 if SMACK is present, 0 otherwise. If SMACK_ENABLED is not defined
- * It returns 0.
- */
-int smack_check(void);
+private:
+ GMainLoop *main_loop;
+};
} // namespace CKM
-
-#endif // _SMACK_CHECK_H_