const bool isCancelable) :
m_onComplete(onComplete),
m_isCancelable(isCancelable),
- m_result(RES_ILLEGAL_STATE),
+ m_result(RES_INVALID_OPERATION),
m_selfPtr(new BaseJob *(this)),
m_isCancelled(0)
{
Result BaseJob::getResult() const
{
if (!m_thread.wasJoinded()) {
- LOG_RETURN(RES_ILLEGAL_STATE, "Job is not complete!");
+ LOG_RETURN(RES_INVALID_OPERATION, "Job is not complete!");
}
return m_result;
}
void onHighlighted(Widget &widget, void *eventInfo)
{
if (!isRealized()) {
- LOG_RETURN_VOID(RES_ILLEGAL_STATE, "Item is not realized!");
+ LOG_RETURN_VOID(RES_INVALID_OPERATION,
+ "Item is not realized!");
}
m_imageGrid.onItemHighlighted(m_realizeIndex);
}
void onUnhighlighted(Widget &widget, void *eventInfo)
{
if (!isRealized()) {
- LOG_RETURN_VOID(RES_ILLEGAL_STATE, "Item is not realized!");
+ LOG_RETURN_VOID(RES_INVALID_OPERATION,
+ "Item is not realized!");
}
m_imageGrid.onItemUnhighlighted(m_realizeIndex);
}
Evas_Object *obj)
{
if (!isRealized()) {
- LOG_RETURN_VALUE(RES_ILLEGAL_STATE, EINA_FALSE,
+ LOG_RETURN_VALUE(RES_INVALID_OPERATION, EINA_FALSE,
"Item is not realized!");
}
Result ImageGrid::setItemCount(const int count)
{
if (m_animator) {
- LOG_RETURN(RES_ILLEGAL_STATE, "Transition is in progress.");
+ LOG_RETURN(RES_INVALID_OPERATION, "Transition is in progress.");
}
if (m_itemCount == count) {
Result ImageGrid::setSelectModeEnabled(const bool enabled)
{
if (m_animator) {
- LOG_RETURN(RES_ILLEGAL_STATE, "Transition is in progress.");
+ LOG_RETURN(RES_INVALID_OPERATION, "Transition is in progress.");
}
if (enabled == m_isInSelectMode) {
Result ImageGrid::updateItem(const int itemIndex, const ItemParams ¶ms)
{
if (m_animator) {
- LOG_RETURN(RES_ILLEGAL_STATE, "Transition is in progress.");
+ LOG_RETURN(RES_INVALID_OPERATION, "Transition is in progress.");
}
return doWithItem(itemIndex,
[¶ms](Slot &slot, const int itemOffset)
Result ImageGrid::scrollToItem(const int itemIndex)
{
if (m_animator) {
- LOG_RETURN(RES_ILLEGAL_STATE, "Transition is in progress.");
+ LOG_RETURN(RES_INVALID_OPERATION, "Transition is in progress.");
}
forceBoxSizeCalculate();
return showItem(itemIndex, elm_scroller_region_show);
Result ImageGrid::bringInItem(int itemIndex)
{
if (m_animator) {
- LOG_RETURN(RES_ILLEGAL_STATE, "Transition is in progress.");
+ LOG_RETURN(RES_INVALID_OPERATION, "Transition is in progress.");
}
return showItem(itemIndex, elm_scroller_region_bring_in);
}
{"RES_NOT_SUPPORTED", DLOG_ERROR},
{"RES_IO_ERROR", DLOG_ERROR},
{"RES_OUT_OF_MEMORY", DLOG_ERROR},
- {"RES_ILLEGAL_STATE", DLOG_ERROR},
+ {"RES_INVALID_OPERATION", DLOG_ERROR},
{"RES_INVALID_ARGUMENTS", DLOG_ERROR},
{"RES_FAIL", DLOG_ERROR},
{"RES_OK", DLOG_INFO},