example/DemoGUI/CustomListWidget.h
author cgandhi
Thu, 05 Aug 2010 16:35:33 +0530
changeset 16 b78fa4cdbf2b
permissions -rw-r--r--
pushing the demo application
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
16
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     1
#ifndef CUSTOMLISTWIDGET_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     2
#define CUSTOMLISTWIDGET_H
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     3
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     4
#include <qlistwidget.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     5
#include <smfcontact.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     6
#include <smfpost.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     7
#include <smfactions.h>
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     8
#include "qmainwindow.h"
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
     9
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    10
class CustomListWidget : public QListWidget
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    11
{
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    12
public:
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    13
    CustomListWidget();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    14
    //QWidget* CreateListwidget(QStrng aIconPath,QString aFirstLine,QString aSecondLine);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    15
    QWidget* CreateListwidget(SmfContactList* friendsList);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    16
    QWidget* CreateListwidget(SmfPostList *postsList);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    17
    QWidget* CreateListwidget(SmfActivityEntryList *activityList);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    18
    void AddListItem(QString aIconPath,QString aFirstLine,QString aSecondLine);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    19
    void AddListItem(QMainWindow *mainWindow,QStringList aIconPath, QStringList iconName);
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    20
    ~CustomListWidget();
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    21
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    22
};
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    23
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    24
b78fa4cdbf2b pushing the demo application
cgandhi
parents:
diff changeset
    25
#endif // CUSTOMLISTWIDGET_H