/* * Copyright (C) 2021 ~ 2022 Deepin Technology Co., Ltd. * * Author: weizhixiang * * Maintainer: weizhixiang * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * This program 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #ifndef APPLAUNCHCONTEXT_H #define APPLAUNCHCONTEXT_H #include #include class DesktopInfo; class AppLaunchContext { public: AppLaunchContext(); void setEnv(const std::vector &value) {m_env = value;} std::vector getEnv() {return m_env;} void setTimestamp(uint32_t value) {m_timestamp = value;} uint32_t getTimestamp() {return m_timestamp;} void setCmdPrefixes(const std::vector &value) {m_cmdPrefixes = value;} std::vector getCmdPrefixes() {return m_cmdPrefixes;} void setCmdSuffixes(const std::vector &value) {m_cmdSuffixes = value;} std::vector getCmdSuffixes() {return m_cmdSuffixes;} std::string getStartupNotifyId(const DesktopInfo *info, std::vector files); void launchFailed(std::string startupNotifyId); private: uint m_count; uint32_t m_timestamp; std::vector m_cmdPrefixes; std::vector m_cmdSuffixes; std::vector m_env; }; #endif // APPLAUNCHCONTEXT_H