//the list of objects void Client::showList(const QVector<ObjectPrinter *> &aItems, const QString& aCaption, const Person &aViewer) { int counter = 1; int itemsCount = aItems.size(); printCenteredHeader(aCaption); printSeparatorLine(); for(int i = 0; i < itemsCount; i++) { printItemNumeration(counter, itemsCount); auto item = aItems[i]; if(!parentAccount_.expired()) item->printListItem(*this, aViewer); sendEOL(); counter = counter + 1; } //show cancel printItemNumeration(0, 1); sendFormattedText("Cancel", "", "0"); sendEOL(); printSeparatorLine(); }
__MSSHELL_WRAPPER_ static inline void _MS__private __lmp_prog printLog(const sel_typ argc, char ** argv) { printListItem(argc ? getItemID(argv[0], &logs_manager[LOGS_PRINT], LOGS) : getItemsListNo(LOGS), LOGS); return; }