__searchText = L"";
__currentSearchDirectoryPath = L"";
+ __directoryForFileEvent = L"";
__bIsResultList = false;
__searchedAllFolders = false;
}
if(__pFileEventManager != null)
- __pFileEventManager->RemovePath(__currentSearchDirectoryPath);
+ __pFileEventManager->RemovePath(__directoryForFileEvent);
// pSceneManager->GoBackward(BackwardSceneTransition(__previousSceneId, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT), null);
if (pCustomAppControl != null)
{
pCustomAppControl->SetAppControlListener(this);
- __pFileEventManager->AddPath(parentDirectoryOfSelectedFile, FILE_EVENT_TYPE_CREATE | FILE_EVENT_TYPE_MOVED_FROM | FILE_EVENT_TYPE_MOVED_TO | FILE_EVENT_TYPE_DELETE );
+ if(__pFileEventManager != null)
+ {
+ __pFileEventManager->RemovePath(__directoryForFileEvent);
+ delete __pFileEventManager;
+ __pFileEventManager = null;
+ }
+ __pFileEventManager = new (std::nothrow) FileEventManager();
+ __pFileEventManager->Construct(*this);
+
+ __directoryForFileEvent = parentDirectoryOfSelectedFile;
+ __pFileEventManager->AddPath(__directoryForFileEvent, FILE_EVENT_TYPE_CREATE | FILE_EVENT_TYPE_MOVED_FROM | FILE_EVENT_TYPE_MOVED_TO | FILE_EVENT_TYPE_DELETE );
AppControl* pAppControlInUse = pCustomAppControl->LaunchAppControl(__pathOfSelectedFile);
if (pAppControlInUse != null)
CustomAppControl::SetAppControlInUse(pAppControlInUse);
__pFileEventManager = new (std::nothrow) FileEventManager();
__pFileEventManager->Construct(*this);
+ __directoryForFileEvent = __currentSearchDirectoryPath;
+ __pFileEventManager->AddPath(__directoryForFileEvent, FILE_EVENT_TYPE_CREATE | FILE_EVENT_TYPE_MOVED_FROM | FILE_EVENT_TYPE_MOVED_TO | FILE_EVENT_TYPE_DELETE );
+ AppLogDebug("SearchForm::OnSceneTransitionCompleted:%S:%s", __directoryForFileEvent.GetPointer(), GetErrorMessage(GetLastResult()));
+
if (__bCheckArgsNull)
{
if (__pListView != null)
void
SearchForm::OnFileEventOccured(const unsigned long events,const Tizen::Base::String & path, const unsigned int eventId)
{
+ AppLogDebug("SearchForm::OnFileEventOccured");
bool cacheKeyStatus = false;
HashMap* pCacheList = null;
DirectoryEntry* pCurrentEntry = null;
}
}
}
+ if (((MyFilesApp*) Application::GetInstance())->IsAppControlLaunched() == false)
+ {
+ AppLogDebug("SearchForm::OnFileEventOccured");
+ if (__searchText.IsEmpty() == false)
+ StartSearch();
+
+ if (__pListView != null)
+ __pListView->UpdateList();
+ }
}
+
__selectedItemIndex =-1;
}
AppLogDebug("OnAppControlCompleted++");
if ( __backFromAppControl==true )
{
+ if (__pFileEventManager != null)
+ {
+ __pFileEventManager->RemovePath(__directoryForFileEvent);
+ delete __pFileEventManager;
+ __pFileEventManager = null;
+ }
+
+ __pFileEventManager = new (std::nothrow) FileEventManager();
+ __pFileEventManager->Construct(*this);
+
+ __directoryForFileEvent = __currentSearchDirectoryPath;
+ __pFileEventManager->AddPath(__directoryForFileEvent, FILE_EVENT_TYPE_CREATE | FILE_EVENT_TYPE_MOVED_FROM | FILE_EVENT_TYPE_MOVED_TO | FILE_EVENT_TYPE_DELETE );
+
+
__pSearchBar->SetMode(__searchBarMode);
if (__searchText.IsEmpty() == false)
ImageMetadata* pImageMeta = null;
ImageBuffer* pImage = null;
+ ImageBuffer* pRotatedImgBuff = null;
+
VideoFrameExtractor extractor;
+ RecordingRotation videoRecordingRotation;
Bitmap* pTmpBmp = null;
AppLogDebug("VideoThumbnail:GetFrameNStop");
if ( pImage )
{
- pRequest->pBitmap = pImage->GetBitmapN(BITMAP_PIXEL_FORMAT_ARGB8888, BUFFER_SCALING_NONE);
+ videoRecordingRotation = extractor.GetRecordingRotation();
+
+ if ( videoRecordingRotation != RECORDING_ROTATION_NONE )
+ {
+ if ( videoRecordingRotation == RECORDING_ROTATION_90 )
+ pRotatedImgBuff = pImage->RotateN(IMAGE_ROTATION_90);
+ else if ( videoRecordingRotation == RECORDING_ROTATION_180 )
+ pRotatedImgBuff = pImage->RotateN(IMAGE_ROTATION_180);
+ else if ( videoRecordingRotation == RECORDING_ROTATION_270 )
+ pRotatedImgBuff = pImage->RotateN(IMAGE_ROTATION_270);
+ }
+
+ pRequest->pBitmap = pRotatedImgBuff->GetBitmapN(BITMAP_PIXEL_FORMAT_ARGB8888, BUFFER_SCALING_NONE);
TryCatch(pRequest->pBitmap != null, r = E_OUT_OF_MEMORY, "FRAMEEXTRACTOR : failed to allocate memory to pTempBitmap");
delete pImage;
}
pTempBitmap = MakeBitmapN(FilePath, GenerateThumbnail, IsVideoFile);
- TryCatch(pTempBitmap != null, r = E_FAILURE, "Thumbnail Geneeration failed");
+ TryCatch(pTempBitmap != null, r = E_FAILURE, "Thumbnail Generation failed");
if (GenerateThumbnail)
{