2006-06-06 20:28:42 +00:00
|
|
|
/* Do not edit this file. It was automatically generated. */
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#ifndef HEADER_ListItem
|
|
|
|
#define HEADER_ListItem
|
|
|
|
/*
|
2006-06-06 20:28:42 +00:00
|
|
|
htop - ListItem.h
|
2006-03-04 18:16:49 +00:00
|
|
|
(C) 2004-2006 Hisham H. Muhammad
|
|
|
|
Released under the GNU GPL, see the COPYING file
|
|
|
|
in the source distribution for its full text.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "String.h"
|
|
|
|
#include "Object.h"
|
|
|
|
#include "RichString.h"
|
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
#include "debug.h"
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
typedef struct ListItem_ {
|
|
|
|
Object super;
|
|
|
|
char* value;
|
|
|
|
int key;
|
|
|
|
} ListItem;
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
extern char* LISTITEM_CLASS;
|
|
|
|
|
|
|
|
ListItem* ListItem_new(char* value, int key);
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
void ListItem_append(ListItem* this, char* text);
|
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
void ListItem_delete(Object* cast);
|
|
|
|
|
|
|
|
void ListItem_display(Object* cast, RichString* out);
|
|
|
|
|
|
|
|
const char* ListItem_getRef(ListItem* this);
|
|
|
|
|
2006-06-06 20:28:42 +00:00
|
|
|
int ListItem_compare(const Object* cast1, const Object* cast2);
|
|
|
|
|
2006-03-04 18:16:49 +00:00
|
|
|
|
|
|
|
#endif
|