2 Copyright 2013-2015 Mats Sjöberg
4 This file is part of the Pumpa programme.
6 Pumpa is free software: you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 Pumpa is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Pumpa. If not, see <http://www.gnu.org/licenses/>.
20 #include "qasobjectlist.h"
23 //------------------------------------------------------------------------------
25 class QASActorList
: public QASObjectList
{
29 QASActorList(QString url
, QObject
* parent
);
32 static void clearCache();
34 static QASActorList
* getActorList(QVariantMap json
, QObject
* parent
,
37 virtual QASActor
* at(size_t i
) const;
39 void addActor(QASActor
* actor
) { addObject(actor
); }
40 void removeActor(QASActor
* actor
) { removeObject(actor
); }
42 bool onlyYou() const { return size()==1 && at(0)->isYou(); }
44 // virtual void refresh();
46 QString
actorNames() const;
49 static QMap
<QString
, QASActorList
*> s_actorLists
;