~ubuntu-branches/debian/experimental/smplayer/experimental

« back to all changes in this revision

Viewing changes to src/recents.h

  • Committer: Bazaar Package Importer
  • Author(s): Maia Kozheva
  • Date: 2009-01-03 17:08:06 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090103170806-eodntb2slv6g2pb6
Tags: 0.6.6-0ubuntu1
* The "just before FF" release.
* New upstream release.
* debian/control: Bumped Standards-Version to 3.8.0.
* debian/copyright: Changed (C) to © to fix Lintian warning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#define _RECENTS_H_
21
21
 
22
22
#include <QStringList>
23
 
#include <QObject>
24
23
 
25
 
class Recents : public QObject
 
24
class Recents
26
25
{
27
 
        Q_OBJECT
28
26
 
29
27
public:
30
 
        Recents(QObject* parent = 0);
31
 
        ~Recents();
32
 
 
33
 
        void add(QString s);
34
 
        int count();
35
 
        QString item(int n);
36
 
 
37
 
        void setMaxItems(int n) { max_items = n; };
38
 
        int maxItems() { return max_items; };
39
 
 
40
 
        void save();
41
 
        void load();
42
 
 
43
 
        void list();
44
 
 
45
 
public slots:
46
 
        void clear();
47
 
 
48
 
private:
 
28
        Recents();
 
29
        virtual ~Recents();
 
30
 
 
31
        virtual void clear();
 
32
 
 
33
        virtual void addItem(QString s);
 
34
        virtual QString item(int n);
 
35
 
 
36
        virtual int count();
 
37
 
 
38
        virtual void setMaxItems(int n_items);
 
39
        virtual int maxItems() { return max_items; };
 
40
 
 
41
        virtual void fromStringList(QStringList list);
 
42
        virtual QStringList toStringList();
 
43
 
 
44
        virtual void list();
 
45
 
 
46
protected:
 
47
        int max_items;
49
48
        QStringList l;
50
 
        int max_items;
51
49
};
52
50
 
53
51
#endif