~ubuntu-branches/ubuntu/wily/udj-desktop-client/wily

« back to all changes in this revision

Viewing changes to src/ParticipantsModel.hpp

  • Committer: Package Import Robot
  • Author(s): Nathan Handler
  • Date: 2012-11-14 15:29:07 UTC
  • mfrom: (1.2.1) (4.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20121114152907-8uj9bwcima77vu28
Tags: 0.6.3-1
* New upstream release
* debian/copyright: Add stanzas for new upstream files
* debian/rules:
  - Do not install ./usr/share/doc/udj/UDJ.1
  - Remove /usr/share/doc/udj directory if it is empty
* debian/control:
  - Bump Standards-Version to 3.9.4 (no changes)
  - Use my @debian.org address for the Maintainer field

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright 2011 Kurtis L. Nusbaum
 
3
 * 
 
4
 * This file is part of UDJ.
 
5
 * 
 
6
 * UDJ is free software: you can redistribute it and/or modify
 
7
 * it under the terms of the GNU General Public License as published by
 
8
 * the Free Software Foundation, either version 2 of the License, or
 
9
 * (at your option) any later version.
 
10
 * 
 
11
 * UDJ is distributed in the hope that it will be useful,
 
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
14
 * GNU General Public License for more details.
 
15
 * 
 
16
 * You should have received a copy of the GNU General Public License
 
17
 * along with UDJ.  If not, see <http://www.gnu.org/licenses/>.
 
18
 */
 
19
#ifndef PARTICIPANTS_MODEL_HPP
 
20
#define PARTICIPANTS_MODEL_HPP
 
21
#include <QStandardItemModel>
 
22
 
 
23
namespace UDJ{
 
24
 
 
25
class DataStore;
 
26
 
 
27
class ParticipantsModel : public QStandardItemModel{
 
28
Q_OBJECT
 
29
public:
 
30
 
 
31
  ParticipantsModel(DataStore *dataStore, QObject *parent=0);
 
32
 
 
33
private slots:
 
34
  void onNewParticipantList(const QVariantList& newParticipants);
 
35
 
 
36
private:
 
37
  static QString getAttrWithDefault(
 
38
    const QVariantMap& user,
 
39
    const QString& attr,
 
40
    const QString& defaultValue);
 
41
  void setHeaders();
 
42
  DataStore *dataStore;
 
43
};
 
44
 
 
45
 
 
46
} //end namespace UDJ
 
47
 
 
48
#endif //PARTICIPANTS_MODEL_HPP