summaryrefslogtreecommitdiff
path: root/lib/common/Database/Listener.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/common/Database/Listener.h')
-rw-r--r--lib/common/Database/Listener.h54
1 files changed, 0 insertions, 54 deletions
diff --git a/lib/common/Database/Listener.h b/lib/common/Database/Listener.h
deleted file mode 100644
index 99c99eb..0000000
--- a/lib/common/Database/Listener.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Copyright 2012-2013 Samsung Electronics Co., Ltd
- *
- * Licensed under the Flora License, Version 1.1 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://floralicense.org/license/
- *
- * 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 __DATABASE_LISTENER_H__
-#define __DATABASE_LISTENER_H__
-
-namespace Database
-{
- /*
- * @brief Database changes listener
- * @details Implement this interface if you want to respond to changes happening in database
- */
- class Listener
- {
- public:
- virtual ~Listener() { }
-
- /*
- * @brief Called whenever a new record was inserted into observed table(s)
- * @param uri URI of changed view (table)
- * @param id ID of newly inserted record
- */
- virtual void onRecordInsert(const char *uri, int id) { }
-
- /*
- * @brief Called whenever a record was updated in the observed table(s)
- * @param uri URI of changed view (table)
- * @param id ID of updated record
- */
- virtual void onRecordUpdate(const char *uri, int id) { }
-
- /*
- * @brief Called whenever a record was deleted from observed table(s)
- * @param uri URI of changed view (table)
- * @param id ID of deleted record
- */
- virtual void onRecordDelete(const char *uri, int id) { }
- };
-}
-
-#endif /* __DATABASE_LISTENER_H__ */