mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
43 lines
No EOL
1.2 KiB
C++
43 lines
No EOL
1.2 KiB
C++
/**
|
|
* Copyright (c) 2015 Daniel Molkentin <danimo@owncloud.com>. All rights reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or modify it under
|
|
* the terms of the GNU Lesser General Public License as published by the Free
|
|
* Software Foundation; either version 2.1 of the License, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
|
* details.
|
|
*/
|
|
|
|
#ifndef OCCONTEXTMENU_H
|
|
#define OCCONTEXTMENU_H
|
|
|
|
#pragma once
|
|
|
|
#include "ShObjIdl.h"
|
|
#include "memory"
|
|
|
|
class OCContextMenu :public IContextMenu
|
|
{
|
|
public:
|
|
OCContextMenu();
|
|
~OCContextMenu();
|
|
|
|
IFACEMETHODIMP QueryInterface(REFIID riid, void **ppv);
|
|
IFACEMETHODIMP_(ULONG) AddRef();
|
|
IFACEMETHODIMP_(ULONG) Release();
|
|
|
|
|
|
IFACEMETHODIMP GetCommandString(UINT_PTR idCmd, UINT uFlags, UINT *pwReserved, LPSTR pszName, UINT cchMax);
|
|
IFACEMETHODIMP InvokeCommand(LPCMINVOKECOMMANDINFO pici);
|
|
IFACEMETHODIMP QueryContextMenu(HMENU hmenu, UINT indexMenu, UINT idCmdFirst, UINT idCmdLast, UINT uFlags);
|
|
private:
|
|
TCHAR* m_pwszVerb;
|
|
long m_referenceCount;
|
|
|
|
};
|
|
|
|
#endif //OCCONTEXTMENU_H
|