/* Methods for the outlinable interface. */ char *XFE_AddrBookView::getCellTipString(int row, int column) { char *tmp = 0; if (row < 0) { /* header */ tmp = getColumnHeaderText(column); }/* if */ else { ABID orgID = m_entryID; /* content */ #if defined(USE_ABCOM) int error = AB_GetABIDForIndex(m_pane, (MSG_ViewIndex) row, &m_entryID); #else m_entryID = AB_GetEntryIDAt((AddressPane *) m_abPane, (uint32) row); #endif /* USE_ABCOM */ tmp = getColumnText(column); /* reset */ m_entryID = orgID; }/* else */ if (tmp && (!m_outliner->isColTextFit(tmp, row, column))) return tmp; return NULL; }
bool SQLiteStatement::returnTextResults(int col, Vector<String>& v) { ASSERT(col >= 0); v.clear(); if (m_statement) finalize(); if (prepare() != SQLITE_OK) return false; while (step() == SQLITE_ROW) v.append(getColumnText(col)); bool result = true; if (m_database.lastError() != SQLITE_DONE) { result = false; LOG(SQLDatabase, "Error reading results from database query %s", m_query.ascii().data()); } finalize(); return result; }