String nextPath;
do
{
- nextPath.Format(35, L"%ls-%3d", path.GetPointer(), ++count);
+ String countString;
+ countString.Format(5, L"-%3d", ++count);
+ nextPath = path;
+ nextPath.Insert(countString, path.GetLength() - 4);
} while (File::IsFileExist(nextPath) == true);
path = nextPath;
}
void
ImportForm::OnActionPerformed(const Control& source, int actionId)
{
- bool checkFlag = false;
- int count = __pList->GetCount();
+ AppLogDebug("Enter.");
switch (actionId)
{
case IDA_IMPORT_FORM_SELECT_ALL:
- checkFlag = IsAllItemChecked() == false;
+ {
+ bool checkFlag = IsAllItemChecked() == false;
+ int count = __pList->GetCount();
for (int i = 0; i < count; ++i)
{
__pListViewContents->SetItemChecked(i, checkFlag);
}
__pListViewContents->Invalidate(true);
break;
+ }
case IDA_IMPORT_FORM_ADD_TO_CALENDAR:
if (IsEventItemChecked() == true)
{
}
break;
}
+ AppLogDebug("Exit.");
}
void
ImportForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
{
+ AppLogDebug("Enter.");
SceneManager::GetInstance()->GoBackward(BackwardSceneTransition(SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
+ AppLogDebug("Exit.");
}
int
void
ImportForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
{
+ AppLogDebug("Enter.");
if (pArgs != null)
{
if (dynamic_cast<CalEvent*>(pArgs->GetAt(0)) != null || dynamic_cast<CalTodo*>(pArgs->GetAt(0)) != null)
}
__pListViewContents->UpdateList();
+ AppLogDebug("Exit.");
}
void
ImportForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
{
+ AppLogDebug("Enter.");
__pList = null;
+ AppLogDebug("Exit.");
}
Color
{
SetShowState(false);
- if (actionId != IDA_EVENT_POPUP_CANCEL && __pTarget != null)
+ if (actionId != IDA_EVENT_POPUP_CANCEL && actionId > 0 && __pTarget != null)
{
LinkedList* pArgs = null;
if (__pEvent != null)
__pEvent = null;
}
__pTarget->SendUserEvent(actionId, pArgs);
+ __pTarget = null;
}
}
{
SetShowState(false);
- if (actionId != IDA_EVENT_POPUP_CANCEL && __pTarget != null)
+ if (actionId != IDA_EVENT_POPUP_CANCEL && actionId > 0 && __pTarget != null)
{
LinkedList* pArgs = null;
if (__pEvent != null)
__pEvent = null;
}
__pTarget->SendUserEvent(actionId, pArgs);
+ __pTarget = null;
}
}