MediaListViewController.h 2.1 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
/*****************************************************************************
 * MediaListViewController.h:
 *****************************************************************************
 * Copyright (C) 2008-2010 VideoLAN
 *
 * Authors: Thomas Boquet <thomas.boquet@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 *****************************************************************************/

Thomas Boquet's avatar
Thomas Boquet committed
23 24 25 26 27 28 29 30 31
#ifndef MEDIALISTVIEWCONTROLLER_H
#define MEDIALISTVIEWCONTROLLER_H

#include "StackViewController.h"
#include "ListViewController.h"
#include "MediaCellView.h"
#include "Library.h"
#include "Media.h"

32
class MediaListViewController : public ListViewController
Thomas Boquet's avatar
Thomas Boquet committed
33 34 35 36 37 38 39
{
    Q_OBJECT

public:
    MediaListViewController( StackViewController* nav );
    virtual ~MediaListViewController();

40
private:
41 42 43 44 45
    StackViewController*        m_nav;
    QUuid                       m_currentUuid;
    QHash<QUuid, QWidget*>*     m_cells;
    MediaListViewController*    m_clipsListView;
    QUuid                       m_lastUuidClipListAsked;
46

Thomas Boquet's avatar
Thomas Boquet committed
47
public slots:
48
    void        newMediaLoaded( Media* media );
Geoffroy Lacarriere's avatar
Geoffroy Lacarriere committed
49
    void        cellSelection( const QUuid& uuid );
50
    void        mediaRemoved( const QUuid& uuid );
51
    void        showClipList( const QUuid& uuid );
52
    void        newClipAdded( Clip* clip );
53

54
private slots:
55
    void        restoreContext();
Geoffroy Lacarriere's avatar
Geoffroy Lacarriere committed
56
signals:
57 58
    void        clipSelected( const QUuid& );
    void        clipDeleted( const QUuid& );
Thomas Boquet's avatar
Thomas Boquet committed
59 60
};
#endif // MEDIALISTVIEWCONTROLLER_H