CARDS 2.4.87
Package manager for the NuTyX GNU/Linux distribution
progressbox.h
1 /*
2  * progressbox.h
3  *
4  * Copyright 2017 Gianni Peschiutta <artemia@nutyx.org>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  *
22  */
23 
24 #ifndef PROGRESSBOX_H
25 #define PROGRESSBOX_H
26 
27 #include <FL/Fl.H>
28 #include <FL/Fl_Double_Window.H>
29 #include <FL/Fl_Progress.H>
30 #include "cards_wrapper.h"
31 
32 using namespace cards;
33 
34 class ProgressBox : public Fl_Double_Window, public CEventHandler, public FileDownloadEvent
35 {
36 public:
37  ProgressBox (CW_ACTIONS action);
38  ~ProgressBox ();
39 protected:
40  void OnDoJobListFinished (const CEH_RC rc);
41  void OnSyncFinished(const CEH_RC rc);
42  void OnProgressInfo(int percent);
43  void OnFileDownloadProgressInfo(FileDownloadState state);
44 static void Callback(Fl_Widget*,void* pInstance);
45 private:
46  Fl_Progress* _jobProgress;
47  Fl_Progress* _fileProgress;
48  CWrapper* _cards;
49 };
50 
51 #endif
Definition: progressbox.h:34
File Download Event class.
Definition: file_download.h:62
File Download State class.
Definition: file_download.h:43
Definition: cards_wrapper.h:58
Definition: cards_event_handler.h:61
Definition: cards_client.cxx:26