Lhaz
lhazfile_gd.h
[詳解]
1 /*************************************************************************/
6 #pragma once
7 
8 #include "altstr.hpp"
9 #include <windows.h>
10 #include <gcroot.h>
11 #include "lhazfile.h"
12 #include "mygoogledrive.h"
13 #include "mystr.h"
14 
15 class MYGOOGLEDRIVE;
16 
17 class LHAZFILE_GD : public LHAZFILE {
18 
19 public:
20  static void OnUploadCompleted(void);
21  //
22  LHAZFILE_GD(const WSTR& name, const time_t& t, int icon, bool isdir);
24  const WSTR& name,
25  const time_t& t,
26  int icon,
27  bool isdir,
28  const MYSTR& alternateuri,
29  LONGLONG size,
30  bool isgdoc
31  );
32  //
33  void AddParent(const MYSTR& dir, const MYSTR uri, const MYSTR& id, bool isroot);
34  bool Download(MYGOOGLEDRIVE* gdrive, const MYSTR& destdir, MYSTR& destfile, MYGOOGLEDRIVE::DOWNLOADCB cb, void* param);
35  const WSTR& GetAlternateUri(void) const { return m_alternateuri; }
36  const WSTR& GetEditUri(void) const { return m_edituri; }
37  const WSTR& GetId(void) const { return m_id; }
38  bool IsGoogleDocument(void) const { return m_isgdoc; }
39  bool IsNewDir(void) const { return m_newdir; }
40  void SetEditUri(const MYSTR& u) { m_edituri = u; }
41  void SetId(const WSTR& id) { m_id = id; }
42 
43 private:
45  WSTR m_edituri;
46  WSTR m_id;
47  bool m_isgdoc;
48  bool m_newdir;
49 
50 };
Definition: lhazfile.h:14
bool m_newdir
Definition: lhazfile_gd.h:48
void AddParent(const MYSTR &dir, const MYSTR uri, const MYSTR &id, bool isroot)
AddParent.
Definition: lhazfile_gd.cpp:42
const WSTR & GetId(void) const
Definition: lhazfile_gd.h:37
const WSTR & GetEditUri(void) const
Definition: lhazfile_gd.h:36
bool m_isgdoc
Definition: lhazfile_gd.h:47
Definition: lhazfile_gd.h:17
static void OnUploadCompleted(void)
OnUploadCompleted.
Definition: lhazfile_gd.cpp:66
LHAZFILE_GD(const WSTR &name, const time_t &t, int icon, bool isdir)
Constructor.
Definition: lhazfile_gd.cpp:13
WSTR m_id
Definition: lhazfile_gd.h:46
bool IsNewDir(void) const
Definition: lhazfile_gd.h:39
WSTR m_edituri
Definition: lhazfile_gd.h:45
void SetEditUri(const MYSTR &u)
Definition: lhazfile_gd.h:40
bool Download(MYGOOGLEDRIVE *gdrive, const MYSTR &destdir, MYSTR &destfile, MYGOOGLEDRIVE::DOWNLOADCB cb, void *param)
Download.
Definition: lhazfile_gd.cpp:55
const WSTR & GetAlternateUri(void) const
Definition: lhazfile_gd.h:35
bool IsGoogleDocument(void) const
Definition: lhazfile_gd.h:38
void SetId(const WSTR &id)
Definition: lhazfile_gd.h:41
WSTR m_alternateuri
Definition: lhazfile_gd.h:44