8#ifndef TAB_DECK_STORAGE_H
9#define TAB_DECK_STORAGE_H
11#include "../interface/widgets/server/remote/remote_decklist_tree_widget.h"
20class QFileSystemModel;
25class CommandContainer;
46 void uploadDeck(
const QString &filePath,
const QString &targetPath);
61 void uploadFinished(
const Response &r,
const CommandContainer &commandContainer);
73 void downloadFinished(
const Response &r,
const CommandContainer &commandContainer,
const QVariant &extraData);
76 void newFolderFinished(
const Response &response,
const CommandContainer &commandContainer);
80 void deleteDeckFinished(
const Response &response,
const CommandContainer &commandContainer);
87 return tr(
"Deck Storage");
ClientStatus
Definition abstract_client.h:36
Definition abstract_client.h:51
Definition remote_decklist_tree_widget.h:26
QFileSystemModel * localDirModel
Definition tab_deck_storage.h:34
QAction * aDeleteRemoteDeck
Definition tab_deck_storage.h:41
QAction * aDeleteLocalDeck
Definition tab_deck_storage.h:39
QToolBar * leftToolBar
Definition tab_deck_storage.h:35
void downloadNodeAtIndex(const QModelIndex &curLeft, const QModelIndex &curRight)
Definition tab_deck_storage.cpp:466
void deleteFolderFinished(const Response &response, const CommandContainer &commandContainer)
Definition tab_deck_storage.cpp:614
void actOpenLocalDeck()
Definition tab_deck_storage.cpp:237
void retranslateUi() override
Definition tab_deck_storage.cpp:164
QAction * aOpenDecksFolder
Definition tab_deck_storage.h:40
QAction * aOpenLocalDeck
Definition tab_deck_storage.h:39
QAction * aNewFolder
Definition tab_deck_storage.h:41
QAction * aUpload
Definition tab_deck_storage.h:39
QString getTargetPath() const
Definition tab_deck_storage.cpp:181
void openRemoteDeckFinished(const Response &r, const CommandContainer &commandContainer)
Definition tab_deck_storage.cpp:437
QAction * aRenameLocal
Definition tab_deck_storage.h:39
void handleConnectionChanged(ClientStatus status)
Definition tab_deck_storage.cpp:208
QAction * aNewLocalFolder
Definition tab_deck_storage.h:39
QTreeView * localDirView
Definition tab_deck_storage.h:33
TabDeckStorage(TabSupervisor *_tabSupervisor, AbstractClient *_client, const ServerInfo_User *currentUserInfo)
Definition tab_deck_storage.cpp:32
QString getTabText() const override
Definition tab_deck_storage.h:85
void actRemoteDoubleClick(const QModelIndex &curRight)
Definition tab_deck_storage.cpp:413
void actOpenRemoteDeck()
Definition tab_deck_storage.cpp:420
void actLocalDoubleClick(const QModelIndex &curLeft)
Definition tab_deck_storage.cpp:230
void uploadDeck(const QString &filePath, const QString &targetPath)
Definition tab_deck_storage.cpp:308
void newFolderFinished(const Response &response, const CommandContainer &commandContainer)
Definition tab_deck_storage.cpp:541
QAction * aDownload
Definition tab_deck_storage.h:41
QGroupBox * leftGroupBox
Definition tab_deck_storage.h:37
void actNewLocalFolder()
Definition tab_deck_storage.cpp:366
void actDownload()
Definition tab_deck_storage.cpp:454
QToolBar * rightToolBar
Definition tab_deck_storage.h:35
RemoteDeckList_TreeWidget * serverDirView
Definition tab_deck_storage.h:36
QAction * aOpenRemoteDeck
Definition tab_deck_storage.h:41
void setRemoteEnabled(bool enabled)
Definition tab_deck_storage.cpp:215
void actNewFolder()
Definition tab_deck_storage.cpp:513
void actUpload()
Definition tab_deck_storage.cpp:285
void actDeleteRemoteDeck()
Definition tab_deck_storage.cpp:552
void openDeckEditor(const LoadedDeck &deck)
void deleteRemoteDeck(const RemoteDeckList_TreeModel::Node *node)
Definition tab_deck_storage.cpp:570
QGroupBox * rightGroupBox
Definition tab_deck_storage.h:37
void actRenameLocal()
Definition tab_deck_storage.cpp:255
void uploadFinished(const Response &r, const CommandContainer &commandContainer)
Definition tab_deck_storage.cpp:352
void actDeleteLocalDeck()
Definition tab_deck_storage.cpp:387
void deleteDeckFinished(const Response &response, const CommandContainer &commandContainer)
Definition tab_deck_storage.cpp:601
void handleConnected(const ServerInfo_User &userInfo)
Definition tab_deck_storage.cpp:200
void downloadFinished(const Response &r, const CommandContainer &commandContainer, const QVariant &extraData)
Definition tab_deck_storage.cpp:497
AbstractClient * client
Definition tab_deck_storage.h:32
void actOpenDecksFolder()
Definition tab_deck_storage.cpp:407
Definition tab_supervisor.h:83
Tab(TabSupervisor *_tabSupervisor)
Definition tab.cpp:11
Represents a deck that was loaded from somewhere. Contains the DeckList itself, as well as info about...
Definition loaded_deck.h:14