move create_absolute_pidl() member function implementation from Enry into WinEntry

svn path=/branches/lean-explorer/; revision=8707
This commit is contained in:
Martin Fuchs
2004-03-14 12:11:19 +00:00
parent 821980ba92
commit 655eff3fef
4 changed files with 14 additions and 14 deletions
@@ -315,19 +315,6 @@ void Entry::smart_scan(int scan_flags)
}
ShellPath Entry::create_absolute_pidl() const
{
CONTEXT("Entry::create_absolute_pidl()");
TCHAR path[MAX_PATH];
if (get_path(path))
return ShellPath(path);
return ShellPath();
}
void Entry::extract_icon()
{
TCHAR path[MAX_PATH];
@@ -102,7 +102,7 @@ public:
virtual const void* get_next_path_component(const void*) {return NULL;}
virtual Entry* find_entry(const void*) {return NULL;}
virtual bool get_path(PTSTR path) const = 0;
virtual ShellPath create_absolute_pidl() const;
virtual ShellPath create_absolute_pidl() const {return (LPCITEMIDLIST)NULL;}
virtual HRESULT GetUIObjectOf(HWND hWnd, REFIID riid, LPVOID* ppvOut);
virtual BOOL launch_entry(HWND hwnd, UINT nCmdShow=SW_SHOWNORMAL);
};
@@ -189,3 +189,15 @@ bool WinEntry::get_path(PTSTR path) const
return true;
}
ShellPath WinEntry::create_absolute_pidl() const
{
CONTEXT("WinEntry::create_absolute_pidl()");
TCHAR path[MAX_PATH];
if (get_path(path))
return ShellPath(path);
return ShellPath();
}
@@ -35,6 +35,7 @@ protected:
WinEntry() : Entry(ET_WINDOWS) {}
virtual bool get_path(PTSTR path) const;
virtual ShellPath create_absolute_pidl() const;
};