27 #ifndef DIGIKAM_IMPORTUI_H
28 #define DIGIKAM_IMPORTUI_H
36 #include <QCloseEvent>
56 class CollectionLocation;
57 class CameraHistoryUpdater;
59 class CameraThumbsCtrl;
67 explicit ImportUI(
const QString& cameraTitle,
77 bool isClosed()
const;
79 bool cameraDeleteSupport()
const;
80 bool cameraUploadSupport()
const;
81 bool cameraMkDirSupport()
const;
82 bool cameraDelDirSupport()
const;
83 bool cameraUseUMSDriver()
const;
84 bool cameraUseGPhotoDriver()
const;
85 QString cameraTitle()
const;
87 void enableZoomPlusAction(
bool val);
88 void enableZoomMinusAction(
bool val);
111 void slotDownload(
bool onlySelected,
bool deleteAfter,
Album* pAlbum =
nullptr);
116 void closeEvent(QCloseEvent* e)
override;
117 void moveEvent(QMoveEvent* e)
override;
122 void updateActions();
123 void setupConnections();
124 void setupUserArea();
125 void setupStatusBar();
126 void setupAccelerators();
127 void setupCameraController(
const QString& model,
const QString& port,
const QString& path);
131 bool createAutoAlbum(
const QUrl& parentURL,
const QString& sub,
132 const QDate& date, QString& errMsg)
const;
136 void refreshFreeSpace();
137 void refreshCollectionFreeSpace();
138 void deleteItems(
bool onlySelected,
bool onlyDownloaded);
140 void setDownloaded(
CamItemInfo& itemInfo,
int status);
141 void itemsSelectionSizeInfo(
unsigned long& fSizeKB,
unsigned long& dSizeKB);
142 QMap<QString, int> countItemsByFolders()
const;
143 void checkItem4Deletion(
const CamItemInfo& info, QStringList& folders, QStringList& files,
146 QString identifyCategoryforMime(
const QString& mime);
147 void autoRotateItems();
149 bool checkDiskSpace(
PAlbum* pAlbum);
150 bool downloadCameraItems(
PAlbum* pAlbum,
bool onlySelected,
bool deleteAfter);
151 bool createSubAlbums(QUrl& downloadUrl,
const CamItemInfo& info);
152 bool createSubAlbum(QUrl& downloadUrl,
const QString& subalbum,
const QDate& date);
153 bool createDateBasedSubAlbum(QUrl& downloadUrl,
const CamItemInfo& info);
154 bool createExtBasedSubAlbum(QUrl& downloadUrl,
const CamItemInfo& info);
156 void showThumbBar(
bool visible)
override;
157 void showSideBars(
bool visible)
override;
158 bool thumbbarVisibility()
const override;
159 void customizedFullScreenMode(
bool set)
override;
160 void toogleShowBar();
161 void setInitialSorting();
162 void sidebarTabTitleStyleChanged();
168 void slotCancelButton();
171 void slotConnected(
bool val);
172 void slotBusy(
bool val);
174 void slotInformation();
176 void slotCameraInformation(
const QString&,
const QString&,
const QString&);
177 void slotCameraFreeSpaceInfo(
unsigned long kBSize,
unsigned long kBAvail);
179 void slotHistoryEntryClicked(
const QVariant&);
181 void slotFolderList(
const QStringList& folderList);
183 void slotZoomSliderChanged(
int size);
184 void slotZoomChanged(
double zoom);
185 void slotThumbSizeChanged(
int size);
189 void slotDownloadNew();
190 void slotDownloadSelected();
191 void slotDownloadAll();
193 void slotDownloadAndDeleteNew();
194 void slotDownloadAndDeleteSelected();
195 void slotDownloadAndDeleteAll();
197 void slotDeleteAfterDownload();
198 void slotDeleteSelected();
199 void slotDeleteNew();
200 void slotDeleteAll();
202 void slotToggleLock();
203 void slotMarkAsDownloaded();
206 void slotDownloaded(
const QString&,
const QString&,
int);
207 void slotDownloadComplete(
const QString& sourceFolder,
const QString& sourceFile,
208 const QString& destFolder,
const QString& destFile);
209 void slotSkipped(
const QString&,
const QString&);
210 void slotDeleted(
const QString&,
const QString&,
bool);
211 void slotLocked(
const QString&,
const QString&,
bool);
213 void slotUpdateDownloadName();
214 void slotSelectNew();
215 void slotSelectLocked();
216 void slotProgressTimerDone();
218 void slotNewSelection(
bool);
221 void slotSwitchedToPreview();
222 void slotSwitchedToIconView();
223 void slotSwitchedToMapView();
225 void slotMetadata(
const QString& folder,
const QString& file,
const MetaEngineData& meta);
229 void slotToggleShowBar();
230 void slotColorManagementOptionsChanged();
231 void slotToggleColorManagedView();
232 void slotSetup()
override;
233 void slotComponentsInfo()
override;
234 void slotDBStat()
override;
235 void slotOnlineVersionCheck()
override;
236 void slotToggleRightSideBar()
override;
237 void slotPreviousRightSideBarTab()
override;
238 void slotNextRightSideBarTab()
override;
240 void slotSetupChanged();
Abstract base class for all album types.
Definition: album.h:67
Definition: camiteminfo.h:48
Definition: camerathumbsctrl.h:48
Definition: collectionlocation.h:41
EntryType
Definition: dhistoryview.h:48
Definition: dinfointerface.h:56
Definition: dpluginaction.h:40
Definition: dxmlguiwindow.h:98
Definition: downloadsettings.h:41
Definition: importui_p.h:155
Definition: importui.h:62
DInfoInterface * infoIface(DPluginAction *const) override
Definition: importui.h:96
void signalWindowHasMoved()
void signalNewSelection(bool)
void signalEscapePressed()
void signalPreviewRequested(const CamItemInfo &, bool)
void signalLastDestination(const QUrl &)
@ Album
Definition: coredbfields.h:58
std::vector< T > location(const std::vector< T > &shape, unsigned long idx)
Definition: shapepredictor.h:109
Definition: datefolderview.cpp:43