bookmarks.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * bookmarks.hpp : bookmarks
00003  ****************************************************************************
00004  * Copyright (C) 2006 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Antoine Lejeune <phytos@via.ecp.fr>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 
00025 #ifndef _BOOKMARKS_H_
00026 #define _BOOKMARKS_H
00027 
00028 #include "util/qvlcframe.hpp"
00029 #include <QStandardItemModel>
00030 #include <QTreeView>
00031 #include <QTreeWidget>
00032 
00033 class BookmarksDialog : public QVLCFrame
00034 {
00035     Q_OBJECT;
00036 public:
00037     static BookmarksDialog * getInstance( intf_thread_t *p_intf )
00038     {
00039         if( !instance )
00040             instance = new BookmarksDialog( p_intf );
00041         return instance;
00042     }
00043     static void killInstance()
00044     {
00045         if( instance ) delete instance;
00046         instance = NULL;
00047     }
00048     virtual ~BookmarksDialog();
00049 private:
00050     BookmarksDialog( intf_thread_t * );
00051     static BookmarksDialog *instance;
00052     void update();
00053     QTreeWidget *bookmarksList;
00054 private slots:
00055     void add();
00056     void del();
00057     void clear();
00058     void edit( QTreeWidgetItem *item, int column );
00059     void extract();
00060     void activateItem( QModelIndex index );
00061 };
00062 
00063 #endif
00064 

Generated on Wed Aug 13 08:02:37 2008 for VLC by  doxygen 1.5.1