2008-08-19 18:08:48 -04:00
|
|
|
/****************************************************************
|
|
|
|
* RetroShare is distributed under the following license:
|
|
|
|
*
|
2008-08-20 17:39:03 -04:00
|
|
|
* Copyright (C) 2008, defnax
|
2008-08-19 18:08:48 -04:00
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SHAREDFILESDIALOG_H
|
|
|
|
#define _SHAREDFILESDIALOG_H
|
|
|
|
|
|
|
|
#include <QFileDialog>
|
|
|
|
|
|
|
|
//#include <config/rsharesettings.h>
|
|
|
|
|
|
|
|
#include "mainpage.h"
|
|
|
|
#include "ui_LibraryDialog.h"
|
|
|
|
|
|
|
|
#include "rsiface/rstypes.h"
|
2009-08-11 05:36:35 -04:00
|
|
|
#include "gui/RemoteDirModel.h"
|
2008-08-19 18:08:48 -04:00
|
|
|
|
|
|
|
class LibraryDialog : public MainPage
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
/** Default Constructor */
|
|
|
|
LibraryDialog(QWidget *parent = 0);
|
|
|
|
/** Default Destructor */
|
|
|
|
|
2008-08-20 17:39:03 -04:00
|
|
|
QString filePass();
|
2008-08-27 04:41:43 -04:00
|
|
|
QString LibShared;
|
|
|
|
QString filechose;
|
|
|
|
QModelIndex ind;
|
2008-08-19 18:08:48 -04:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void PopulateList();
|
|
|
|
|
|
|
|
void CallShareFilesBtn_library();
|
|
|
|
void CallTileViewBtn_library();
|
|
|
|
void CallShowDetailsBtn_library();
|
|
|
|
void CallCreateAlbumBtn_library();
|
|
|
|
void CallDeleteAlbumBtn_library();
|
2008-08-20 17:39:03 -04:00
|
|
|
void CallFindBtn_library();
|
2008-08-27 04:41:43 -04:00
|
|
|
|
|
|
|
void browseFile();
|
|
|
|
void player();
|
|
|
|
void ListLibrarymenu(QModelIndex,QPoint);
|
|
|
|
void PlayFrmList();
|
|
|
|
void copyFile();
|
|
|
|
void DeleteFile();
|
|
|
|
void RenameFile();
|
|
|
|
void StopRename();
|
2008-08-19 18:08:48 -04:00
|
|
|
|
|
|
|
|
|
|
|
signals:
|
2008-08-27 04:41:43 -04:00
|
|
|
void rightButtonClicked(const QModelIndex , const QPoint);
|
2008-08-19 18:08:48 -04:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
2008-08-27 04:41:43 -04:00
|
|
|
QTimer *progtime;
|
2008-08-19 18:08:48 -04:00
|
|
|
|
|
|
|
|
|
|
|
/** Qt Designer generated object */
|
|
|
|
Ui::LibraryDialog ui;
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|