2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 GlContentUpdateEventListener.h
19 * @brief This is the header file for FileListPresentationModel class.
22 #ifndef _GL_CONTENT_UPDATE_EVENT_LISTENER_H_
23 #define _GL_CONTENT_UPDATE_EVENT_LISTENER_H_
27 class ContentUpdateEventListener
28 : public Tizen::Base::Object
29 , public Tizen::Content::IContentUpdateEventListener
32 static ContentUpdateEventListener* GetInstance(void);
33 void AddContentListener(void);
34 void RemoveContentListener(void);
35 bool GetChangeNotificationStatus();
36 void ResumeOperation();
39 ContentUpdateEventListener(void);
40 virtual ~ContentUpdateEventListener(void);
42 result Construct(void);
43 static void CreateInstance(void);
44 static void DestroyInstance(void);
46 virtual void OnContentFileCreated(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
47 virtual void OnContentFileUpdated(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
48 virtual void OnContentFileDeleted(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
49 virtual void OnContentDirectoryScanCompleted(const Tizen::Base::String& directoryPath, result r);
52 static ContentUpdateEventListener* __pContentUpdateEventListener;
53 Tizen::Content::ContentManager* __pContentManager;
54 bool __changeNotificationReceived;
57 #endif /* _GL_CONTENT_UPDATE_EVENT_LISTENER_H_ */