Searched refs:fItems (Results 1 - 25 of 42) sorted by relevance

12

/haiku/src/apps/mediaplayer/playlist/
H A DCopyPLItemsCommand.cpp29 fItems(count > 0 ? new (nothrow) PlaylistItem*[count] : NULL),
34 if (!indices || !fPlaylist || !fItems) {
36 delete[] fItems;
37 fItems = NULL;
41 memset(fItems, 0, sizeof(PlaylistItem*) * fCount);
47 fItems[i] = item->Clone();
48 if (fItems[i] == NULL) {
50 _CleanUp(fItems, fCount, true);
59 _CleanUp(fItems, fCount, !fItemsCopied);
66 if (!fPlaylist || !fItems)
[all...]
H A DMovePLItemsCommand.cpp30 fItems(count > 0 ? new (nothrow) PlaylistItem*[count] : NULL),
35 if (!indices || !fPlaylist || !fItems || !fIndices) {
37 delete[] fItems;
38 fItems = NULL;
42 memset(fItems, 0, sizeof(PlaylistItem*) * fCount);
50 fItems[i] = fPlaylist->ItemAt(fIndices[i]);
51 if (fItems[i] == NULL) {
53 delete[] fItems;
54 fItems = NULL;
66 delete[] fItems;
[all...]
H A DRandomizePLItemsCommand.cpp31 fItems(count > 0 ? new (nothrow) PlaylistItem*[count] : NULL),
36 if (!indices || !fPlaylist || !fItems || !fListIndices
39 delete[] fItems;
40 fItems = NULL;
45 memset(fItems, 0, fCount * sizeof(PlaylistItem*));
50 fItems[i] = fPlaylist->ItemAt(fListIndices[i]);
51 if (fItems[i] == NULL || !indexSet.AddItem((void*)(addr_t)i)) {
53 delete[] fItems;
54 fItems = NULL;
69 delete[] fItems;
[all...]
H A DRemovePLItemsCommand.cpp31 fItems(count > 0 ? new (nothrow) PlaylistItem*[count] : NULL),
38 if (!indices || !fPlaylist || !fItems || !fIndices) {
40 delete[] fItems;
41 fItems = NULL;
46 memset(fItems, 0, fCount * sizeof(PlaylistItem*));
50 fItems[i] = fPlaylist->ItemAt(fIndices[i]);
51 if (fItems[i] == NULL) {
52 delete[] fItems;
53 fItems = NULL;
62 _CleanUp(fItems, fCoun
[all...]
H A DCopyPLItemsCommand.h29 PlaylistItem** fItems; member in class:CopyPLItemsCommand
H A DMovePLItemsCommand.h29 PlaylistItem** fItems; member in class:MovePLItemsCommand
H A DRandomizePLItemsCommand.h30 PlaylistItem** fItems; member in class:RandomizePLItemsCommand
H A DRemovePLItemsCommand.h29 PlaylistItem** fItems; member in class:RemovePLItemsCommand
H A DPlaylist.cpp91 fItems(),
236 return fItems.CountItems();
243 return fItems.IsEmpty();
250 fItems.SortItems(playlist_item_compare);
265 if (!fItems.AddItem(item, index))
291 if (fItems.AddList(&other.fItems, index)) {
301 other.fItems.MakeEmpty();
311 PlaylistItem* item = (PlaylistItem*)fItems.RemoveItem(index);
335 return fItems
[all...]
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/
H A DTemplateList.h81 item_t *fItems; member in class:TemplateList
96 fItems(NULL)
108 free(fItems);
147 _MoveItems(fItems + index, 1, fItemCount - index - 1);
148 new(fItems + index) item_t(item);
160 new(fItems + fItemCount) item_t(item);
164 new(fItems + (fItemCount - 1)) item_t(item);
181 _MoveItems(fItems + index, count, fItemCount - index - count);
182 memcpy(fItems + index, list->fItems,
[all...]
H A DKPPPConfigurePacket.h50 { return fItems.CountItems(); }
59 TemplateList<ppp_configure_item*> fItems; member in class:KPPPConfigurePacket
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DList.h76 item_t *fItems; member in class:List
91 fItems(NULL)
103 free(fItems);
142 _MoveItems(fItems + index, 1, fItemCount - index - 1);
143 new(fItems + index) item_t(item);
155 new(fItems + fItemCount) item_t(item);
159 new(fItems + (fItemCount - 1)) item_t(item);
176 _MoveItems(fItems + index, count, fItemCount - index - count);
177 memcpy(fItems + index, list->fItems,
[all...]
/haiku/src/system/kernel/vm/
H A DVMAddressSpaceLocking.cpp330 fItems(NULL),
341 free(fItems);
359 lock_item* items = (lock_item*)realloc(fItems,
365 fItems = items;
376 if (fItems[i].space == space)
398 lock_item& item = fItems[fCount++];
406 fItems[index].write_lock |= writeLock;
422 fItems[i].space->Put();
433 qsort(fItems, fCount, sizeof(lock_item), &_CompareItems);
437 if (fItems[
[all...]
/haiku/src/apps/haikudepot/
H A DList.h30 fItems(NULL),
41 fItems(NULL),
51 fItems(NULL),
66 free(fItems);
88 return memcmp(fItems, other.fItems,
170 ItemType* object = fItems + index;
176 memcpy(fItems + index, fItems + nextIndex,
200 ItemType* item = fItems
399 ItemType* fItems; member in class:List
[all...]
/haiku/src/add-ons/kernel/file_systems/reiserfs/
H A DList.h86 item_t *fItems; member in class:List
101 fItems(NULL)
113 free(fItems);
152 _MoveItems(fItems + index, 1, fItemCount - index - 1);
153 new(fItems + index) item_t(item);
165 new(fItems + fItemCount) item_t(item);
169 new(fItems + (fItemCount - 1)) item_t(item);
186 _MoveItems(fItems + index, count, fItemCount - index - count);
187 memcpy(fItems + index, list->fItems,
[all...]
/haiku/headers/private/kernel/util/
H A DVector.h93 Value *fItems; member in class:Vector
204 fItems(NULL)
222 free(fItems);
314 _MoveItems(fItems + index, 1, fItemCount - index - 1);
315 new(fItems + index) Value(value);
370 fItems[index].~Value();
371 _MoveItems(fItems + index + 1, -1, fItemCount - index - 1);
373 return Iterator(fItems + index);
428 fItems[i].~Value();
445 return Iterator(fItems);
[all...]
/haiku/headers/private/userlandfs/shared/
H A DVector.h89 Value *fItems; member in class:Vector
200 fItems(NULL)
218 free(fItems);
310 _MoveItems(fItems + index, 1, fItemCount - index - 1);
311 new(fItems + index) Value(value);
366 fItems[index].~Value();
367 _MoveItems(fItems + index + 1, -1, fItemCount - index - 1);
369 return Iterator(fItems + index);
424 fItems[i].~Value();
441 return Iterator(fItems);
[all...]
/haiku/src/add-ons/kernel/drivers/input/usb_hid/
H A DHIDReport.cpp29 fItems(NULL),
42 free(fItems);
111 HIDReportItem **newItems = (HIDReportItem **)realloc(fItems,
119 fItems = newItems;
136 fItems[fItemsUsed] = new(std::nothrow) HIDReportItem(this,
140 if (fItems[fItemsUsed] == NULL)
144 collection->AddItem(fItems[fItemsUsed]);
184 HIDReportItem *item = fItems[i];
205 return fItems[index];
213 if (fItems[
[all...]
H A DHIDCollection.cpp31 fItems(NULL)
57 free(fItems);
136 HIDReportItem **newItems = (HIDReportItem **)realloc(fItems,
144 fItems = newItems;
147 fItems[fItemCount++] = item;
157 return fItems[index];
223 HIDReportItem *item = fItems[i];
265 return fItems[index];
289 HIDReportItem *item = fItems[i];
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A DKPPPConfigurePacket.cpp112 status = fItems.AddItem(add);
114 status = fItems.AddItem(add, index);
128 if (!fItems.HasItem(item))
131 fItems.RemoveItem(item);
142 ppp_configure_item *item = fItems.ItemAt(index);
144 if (item == fItems.GetDefaultItem())
/haiku/src/kits/interface/
H A DLayout.cpp65 fItems(20)
79 fItems(20)
161 if (!fTarget || !item || fItems.HasItem(item))
178 if (index < 0 || index > fItems.CountItems())
179 index = fItems.CountItems();
181 if (!fItems.AddItem(item, index))
185 fItems.RemoveItem(index);
234 if (index < 0 || index >= fItems.CountItems())
237 BLayoutItem* item = (BLayoutItem*)fItems.RemoveItem(index);
256 return (BLayoutItem*)fItems
[all...]
/haiku/src/servers/launch/
H A DLog.h68 { return fItems.GetIterator(); }
90 LogItemList fItems; member in class:Log
/haiku/src/kits/tracker/
H A DFavoritesMenu.cpp207 fItems.MakeEmpty();
212 BRoster().GetRecentDocuments(&fItems, docs, NULL, info.signature);
223 if (fItems.FindRef("refs", fIndex++, &ref) != B_OK)
255 fItems.MakeEmpty();
260 BRoster().GetRecentFolders(&fItems, folders, info.signature);
267 if (fItems.FindRef("refs", fIndex++, &ref) != B_OK)
H A DRecentItems.cpp263 fItems.MakeEmpty();
359 return fItems.FindRef("refs", fIndex++, result);
412 BRoster().GetRecentDocuments(&fItems, fMaxItems,
416 BRoster().GetRecentDocuments(&fItems, fMaxItems,
479 BRoster().GetRecentFolders(&fItems, fMaxItems,
503 BRoster().GetRecentApps(&fItems, fMaxItems);
/haiku/src/kits/media/
H A DMediaFiles.cpp109 fItems.AddItem(new BString(items + i * B_MEDIA_NAME_LENGTH,
125 if (fItemIndex < 0 || fItemIndex >= fItems.CountItems()) {
131 *_type = *(BString*)fItems.ItemAt(fItemIndex);
293 for (int32 i = 0; i < fItems.CountItems(); i++)
294 delete (BString*)fItems.ItemAt(i);
296 fItems.MakeEmpty();

Completed in 224 milliseconds

12