-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow.cpp
More file actions
30 lines (25 loc) · 871 Bytes
/
mainwindow.cpp
File metadata and controls
30 lines (25 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QStringList>
MainWindow::MainWindow(ClientMaster *clientMaster, QWidget *parent) :
QMainWindow(parent),
clientMaster(clientMaster),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(ui->refreshButton, SIGNAL(clicked()), this, SLOT(refreshButtonPressed()));
this->serverFiles = new QList<QPair<QString, QString> >();
this->serverFolders = new QList<QPair<QString, QString> >();
this->localFiles = new QList<QPair<QString, QString> >();
}
MainWindow::~MainWindow() {
delete ui;
}
void MainWindow::init() {
}
void MainWindow::refreshButtonPressed() {
this->serverFiles->clear();
this->serverFolders->clear();
clientMaster->getMyFiles(serverFolders, serverFiles);
//for(int i = 0; i < serverFolders->size(); ++i) ui->foldersView->addItem(serverFolder);
}