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.
63 virtual void OnContentFileCreated(ContentId contentId, ContentType contentType, result r) = 0;
66 * Called when the content is updated.
70 * @param[in] contentId The content ID
71 * @param[in] contentType The content type
72 * @param[in] r An error code @n
73 * The following exceptions are given through this parameter.
74 * @exception E_SUCCESS The method is successful.
75 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
77 virtual void OnContentFileUpdated(ContentId contentId, ContentType contentType, result r) = 0;
80 * Called when the content is deleted.
84 * @param[in] contentId The content ID
85 * @param[in] contentType The content type
86 * @param[in] r An error code @n
87 * The following exceptions are given through this parameter.
88 * @exception E_SUCCESS The method is successful.
89 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
91 virtual void OnContentFileDeleted(ContentId contentId, ContentType contentType, result r) = 0;
94 * Called when the scan for a directory is completed.
98 * @param[in] directoryPath The directory path
99 * @param[in] r An error code @n
100 * The following exceptions are given through this parameter.
101 * @exception E_SUCCESS The method is successful.
102 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
104 virtual void OnContentDirectoryScanCompleted(const Tizen::Base::String& directoryPath, result r) = 0;
108 // This method is for internal use only.
109 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
111 // This method is reserved and may change its name at any time without prior notice.
115 virtual void IContentUpdateEventListener_Reserved1(void) {}
118 // This method is for internal use only.
119 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
121 // This method is reserved and may change its name at any time without prior notice.
125 virtual void IContentUpdateEventListener_Reserved2(void) {}
128 // This method is for internal use only.
129 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
131 // This method is reserved and may change its name at any time without prior notice.
135 virtual void IContentUpdateEventListener_Reserved3(void) {}
138 // This method is for internal use only.
139 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
141 // This method is reserved and may change its name at any time without prior notice.
145 virtual void IContentUpdateEventListener_Reserved4(void) {}
148 // This method is for internal use only.
149 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
151 // This method is reserved and may change its name at any time without prior notice.
155 virtual void IContentUpdateEventListener_Reserved5(void) {}
157 }; // class IContentUpdateEventListener
161 #endif // _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_