kwave  18.07.70
LabelList.h
Go to the documentation of this file.
1 /***************************************************************************
2  LabelList.h - list of labels
3  -------------------
4  begin : Sat Aug 05 2006
5  copyright : (C) 2006 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef LABEL_LIST_H
18 #define LABEL_LIST_H
19 
20 #include "config.h"
21 
22 #include <QtGlobal>
23 #include <QList>
24 #include <QListIterator>
25 
26 #include "libkwave/Label.h"
27 
28 namespace Kwave
29 {
30  class MetaDataList;
31 
33  class Q_DECL_EXPORT LabelList: public QList<Kwave::Label>
34  {
35  public:
36 
38  LabelList();
39 
45  explicit LabelList(const Kwave::MetaDataList &meta_data_list);
46 
48  virtual ~LabelList();
49 
51  virtual void sort();
52 
57  Kwave::MetaDataList toMetaDataList() const;
58 
64  sample_index_t nextLabelLeft(sample_index_t from);
65 
71  sample_index_t nextLabelRight(sample_index_t from);
72 
73  };
74 
76  typedef QListIterator<Kwave::Label> LabelListIterator;
77 
78 }
79 
80 #endif /* LABEL_LIST_H */
81 
82 //***************************************************************************
83 //***************************************************************************
Definition: App.h:33
quint64 sample_index_t
Definition: Sample.h:28
QListIterator< Kwave::Label > LabelListIterator
Definition: LabelList.h:76