Codig guideline fix
[apps/osp/Gallery.git] / inc / GlContentUpdateEventListener.h
1 //
2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
3 //
4 // Licensed under the Flora License, Version 1.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
7 //
8 //     http://floralicense.org/license/
9 //
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.
15 //
16
17 /**
18  * @file                GlContentUpdateEventListener.h
19  * @brief               This is the header file for FileListPresentationModel class.
20  */
21
22 #ifndef _GL_CONTENT_UPDATE_EVENT_LISTENER_H_
23 #define _GL_CONTENT_UPDATE_EVENT_LISTENER_H_
24
25 #include <FBase.h>
26 #include <FContent.h>
27
28 class ContentUpdateEventListener
29         : public Tizen::Base::Object
30         , public Tizen::Content::IContentUpdateEventListener
31 {
32 public:
33         static ContentUpdateEventListener* GetInstance(void);
34
35 private:
36         ContentUpdateEventListener(void);
37         virtual ~ContentUpdateEventListener(void);
38
39         result Construct(void);
40         static void CreateInstance(void);
41         static void DestroyInstance(void);
42
43         virtual void OnContentFileCreated(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
44         virtual void OnContentFileUpdated(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
45         virtual void OnContentFileDeleted(Tizen::Content::ContentId contentId, Tizen::Content::ContentType contentType, result r);
46         virtual void OnContentDirectoryScanCompleted(const Tizen::Base::String& directoryPath, result r);
47
48 private:
49         static ContentUpdateEventListener* __pContentUpdateEventListener;
50         Tizen::Content::ContentManager* __pContentManager;
51 };
52
53 #endif /* _GL_CONTENT_UPDATE_EVENT_LISTENER_H_ */