2 // Open Service Platform
3 // Copyright (c) 2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FCntIContentUpdateEventListener.h
20 * @brief This is the header file for the %IContentUpdateEventListener interface.
22 * This header file contains the declarations of the %IContentUpdateEventListener interface.
25 #ifndef _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_
26 #define _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_
28 #include <FBaseRtIEventListener.h>
30 namespace Tizen { namespace Content
33 * @interface IContentUpdateEventListener
34 * @brief This interface is used for receiving the database change notification.
38 * The %IContentUpdateEventListener interface is used for receiving the database change notification.
40 class _OSP_EXPORT_ IContentUpdateEventListener
41 : virtual public Tizen::Base::Runtime::IEventListener
45 * This polymorphic destructor should be overridden if required. @n
46 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
50 virtual ~IContentUpdateEventListener(void) {}
53 * Called when the content is created.
57 * @param[in] contentId The content ID
58 * @param[in] contentType The content type
59 * @param[in] r An error code
60 * The following exception is given through this parameter.
61 * @exception E_SUCCESS The method is successful
62 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
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
74 * The following exception is 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.
78 virtual void OnContentFileUpdated(ContentId contentId, ContentType contentType, result r) = 0;
81 * Called when the content is deleted..
85 * @param[in] contentId The content ID
86 * @param[in] contentType The content type
87 * @param[in] r An error code
88 * The following exception is given through this parameter.
89 * @exception E_SUCCESS The method is successful
90 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
92 virtual void OnContentFileDeleted(ContentId contentId, ContentType contentType, result r) = 0;
95 * Called when the scan for a directory is completed.
99 * @param[in] directoryPath The directory path
100 * @param[in] r An error code
101 * The following exception is given through this parameter.
102 * @exception E_SUCCESS The method is successful
103 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
105 virtual void OnContentDirectoryScanCompleted(const Tizen::Base::String& directoryPath, result r) = 0;
109 // This method is for internal use only.
110 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
112 // This method is reserved and may change its name at any time without prior notice.
116 virtual void IContentUpdateEventListener_Reserved1(void) {}
119 // This method is for internal use only.
120 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
122 // This method is reserved and may change its name at any time without prior notice.
126 virtual void IContentUpdateEventListener_Reserved2(void) {}
129 // This method is for internal use only.
130 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
132 // This method is reserved and may change its name at any time without prior notice.
136 virtual void IContentUpdateEventListener_Reserved3(void) {}
139 // This method is for internal use only.
140 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
142 // This method is reserved and may change its name at any time without prior notice.
146 virtual void IContentUpdateEventListener_Reserved4(void) {}
149 // This method is for internal use only.
150 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
152 // This method is reserved and may change its name at any time without prior notice.
156 virtual void IContentUpdateEventListener_Reserved5(void) {}
158 }; // class IContentUpdateEventListener
162 #endif // _FCNT_ICONTENT_UPDATE_EVENT_LISTENER_H_