: public IContentFileUpdateManager
, public IThumbnailEventListener
, public Tizen::Base::Object
- , public Tizen::Content::IContentScanListener
, public Tizen::System::IDeviceEventListener
{
public:
virtual void OnThumbnailReceivedN(Tizen::Base::Runtime::IEventArg& eventArg);
- virtual void OnContentScanCompleted(RequestId reqId, const Tizen::Base::String &scanPath, result r);
+ void OnContentScanCompleted(const Tizen::Base::String &scanPath);\r
void OnContentCreated(void);
void OnContentUpdated(void);
AppControlMediaType __appControlMediaType;
AppControlSelectionMode __appControlSelectionMode;
bool __updateProgressStatus;
+ Tizen::Base::String __renameNewPath;\r
+ Tizen::Base::String __renameOrgPath;\r
};
#endif /* _GL_ALBUM_LIST_PRESENTATION_MODEL_H_ */
else
{
__pAlbumListener = pAlbumListener;
- r = ContentManager::ScanDirectory(newPath, true, this, __reqId);
+ __renameNewPath = newPath;\r
+ __renameOrgPath = orgPath;\r
+ r = ContentManager::ScanDirectory(newPath, true, NULL, __reqId);\r
AppLogDebug("Content scan failed (%s)", GetErrorMessage(r));
- r = ContentManager::ScanDirectory(orgPath, true, this, __reqId);
+ r = ContentManager::ScanDirectory(orgPath, true, NULL, __reqId);\r
AppLogDebug("Content scan failed (%s)", GetErrorMessage(r));
}
AppLogDebug("EXIT");
return r;
}
-void AlbumListPresentationModel::OnContentScanCompleted (RequestId reqId, const Tizen::Base::String &scanPath, result r)
+void AlbumListPresentationModel::OnContentScanCompleted (const Tizen::Base::String &scanPath)\r
{
- AppLogDebug("ENTER");
- if (__pAlbumListener && __reqId == reqId)
+ AppLogDebug("ENTER");\r
+ if (__pAlbumListener && ( scanPath == __renameNewPath))\r
{
InitializeAlbumInfoList(CONTENT_TYPE_ALL);
__pAlbumListener->OnAlbumRenameComplete();
{
AlbumListPresentationModel::GetInstance()->OnContentDeleted();
FileListPresentationModel::GetInstance()->OnContentDeleted();
+ AlbumListPresentationModel::GetInstance()->OnContentScanCompleted( directoryPath );\r
}
else
{
#include <FUi.h>
#include "GlAlbumListPresentationModel.h"
+#include "GlContentUpdateEventListener.h"\r
#include "GlFileListPresentationModel.h"
#include "GlGalleryApp.h"
#include "GlMainFrame.h"
bool
GalleryApp::OnAppTerminating(AppRegistry& appRegistry, bool forcedTermination)
{
- AppLogDebug("ENTER");
+ AppLogDebug("ENTER");\r
+ ContentUpdateEventListener* pContentListener = ContentUpdateEventListener::GetInstance();\r
+ if (pContentListener)\r
+ {\r
+ pContentListener->RemoveContentListener();\r
+ }\r
AlbumListPresentationModel* pAlbumListPresentationModel = AlbumListPresentationModel::GetInstance();
if (pAlbumListPresentationModel != null)
{