2 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FCntIContentUpdateEventListener.h
19 * @brief This is the header file for the %IContentUpdateEventListener interface.
21 * This header file contains the declarations of the %IContentUpdateEventListener interface.
24 #ifndef _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_
25 #define _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_
27 #include <FBaseRtIEventListener.h>
29 namespace Tizen { namespace Content
32 * @interface IContentUpdateEventListener
33 * @brief This interface is used for receiving the database change notification.
37 * The %IContentUpdateEventListener interface is used for receiving the database change notification.
39 class _OSP_EXPORT_ IContentUpdateEventListener
40 : virtual public Tizen::Base::Runtime::IEventListener
44 * This polymorphic destructor should be overridden if required. @n
45 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
49 virtual ~IContentUpdateEventListener(void) {}
52 * Called when the content is created.
56 * @param[in] contentId The content ID
57 * @param[in] contentType The content type
58 * @param[in] r An error code @n
59 * The following exceptions are given through this parameter.
60 * @exception E_SUCCESS The method is successful.
61 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
62 * @remarks This listener method is not called when the scan for a directory is completed.
64 virtual void OnContentFileCreated(ContentId contentId, ContentType contentType, result r) = 0;
67 * Called when the content is updated.
71 * @param[in] contentId The content ID
72 * @param[in] contentType The content type
73 * @param[in] r An error code @n
74 * The following exceptions are given through this parameter.
75 * @exception E_SUCCESS The method is successful.
76 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
77 * @remarks This listener method is not called when the scan for a directory is completed.
79 virtual void OnContentFileUpdated(ContentId contentId, ContentType contentType, result r) = 0;
82 * Called when the content is deleted.
86 * @param[in] contentId The content ID
87 * @param[in] contentType The content type
88 * @param[in] r An error code @n
89 * The following exceptions are given through this parameter.
90 * @exception E_SUCCESS The method is successful.
91 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
92 * @remarks This listener method is not called when the scan for a directory is completed.
94 virtual void OnContentFileDeleted(ContentId contentId, ContentType contentType, result r) = 0;
97 * Called when the scan for a directory is completed.
101 * @param[in] directoryPath The directory path
102 * @param[in] r An error code @n
103 * The following exceptions are given through this parameter.
104 * @exception E_SUCCESS The method is successful.
105 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
107 virtual void OnContentDirectoryScanCompleted(const Tizen::Base::String& directoryPath, result r) = 0;
111 // This method is for internal use only.
112 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
114 // This method is reserved and may change its name at any time without prior notice.
118 virtual void IContentUpdateEventListener_Reserved1(void) {}
121 // This method is for internal use only.
122 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
124 // This method is reserved and may change its name at any time without prior notice.
128 virtual void IContentUpdateEventListener_Reserved2(void) {}
131 // This method is for internal use only.
132 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
134 // This method is reserved and may change its name at any time without prior notice.
138 virtual void IContentUpdateEventListener_Reserved3(void) {}
141 // This method is for internal use only.
142 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
144 // This method is reserved and may change its name at any time without prior notice.
148 virtual void IContentUpdateEventListener_Reserved4(void) {}
151 // This method is for internal use only.
152 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
154 // This method is reserved and may change its name at any time without prior notice.
158 virtual void IContentUpdateEventListener_Reserved5(void) {}
160 }; // IContentUpdateEventListener
164 #endif // _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_