Welcome to mirror list, hosted at ThFree Co, Russian Federation.

NetFolder.h « FileManager « UI « 7zip « CPP - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 151dd096c8f102a0b4f5c4056fc7e32d4c05d5ef (plain)
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
31
32
33
34
35
36
37
38
39
40
// NetFolder.h

#ifndef __NET_FOLDER_H
#define __NET_FOLDER_H

#include "../../../Common/MyCom.h"

#include "../../../Windows/Net.h"

#include "IFolder.h"

struct CResourceEx: public NWindows::NNet::CResourceW
{
  UString Name;
};

class CNetFolder:
  public IFolderFolder,
  public IFolderGetSystemIconIndex,
  public CMyUnknownImp
{
  NWindows::NNet::CResourceW _netResource;
  NWindows::NNet::CResourceW *_netResourcePointer;

  CObjectVector<CResourceEx> _items;

  CMyComPtr<IFolderFolder> _parentFolder;
  UString _path;
public:
  MY_UNKNOWN_IMP1(IFolderGetSystemIconIndex)
  INTERFACE_FolderFolder(;)
  STDMETHOD(GetSystemIconIndex)(UInt32 index, Int32 *iconIndex);

  CNetFolder(): _netResourcePointer(0) {}
  void Init(const UString &path);
  void Init(const NWindows::NNet::CResourceW *netResource,
      IFolderFolder *parentFolder, const UString &path);
};

#endif