mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
move create_absolute_pidl() member function implementation from Enry into WinEntry
svn path=/branches/lean-explorer/; revision=8707
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user