~carlos-mazieri/ubuntu-filemanager-app/samba-browsing-final

« back to all changes in this revision

Viewing changes to src/plugin/test_folderlistmodel/simpleUI/actionprogress.h

  • Committer: Carlos Mazieri
  • Date: 2015-03-14 19:31:26 UTC
  • Revision ID: carlos.mazieri@gmail.com-20150314193126-xyeclchjmf5corcx
Updated  C++ simple view to test Samba browsing and authentication.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**************************************************************************
2
 
 *
3
 
 * Copyright 2014 Canonical Ltd.
4
 
 * Copyright 2014 Carlos J Mazieri <carlos.mazieri@gmail.com>
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU Lesser General Public License as published by
8
 
 * the Free Software Foundation; version 3.
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 * GNU Lesser General Public License for more details.
14
 
 *
15
 
 * You should have received a copy of the GNU Lesser General Public License
16
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
 
 *
18
 
 * File: actionprogress.h
19
 
 * Date: 30/12/2014
20
 
 */
21
 
 
22
 
#ifndef ACTIONPROGRESS_H
23
 
#define ACTIONPROGRESS_H
24
 
 
25
 
#include <QDialog>
26
 
 
27
 
class QProgressBar;
28
 
 
29
 
class ActionProgress : public QDialog
30
 
{
31
 
    Q_OBJECT
32
 
public:
33
 
   ActionProgress(QWidget *parent = 0);
34
 
signals:
35
 
       void    cancel();
36
 
public slots:
37
 
   void setValue(int v);
38
 
   void reset() ;
39
 
private:
40
 
   QProgressBar * m_pbar;
41
 
};
42
 
 
43
 
#endif // ACTIONPROGRESS_H