/* * Copyright 2013, Stephan Aßmus . * Copyright 2011, Ingo Weinhold, * Copyright 2013, Rene Gollent, * Copyright 2017, Julian Harnath . * Copyright 2021-2024, Andrew Lindesay . * * All rights reserved. Distributed under the terms of the MIT License. * * Note that this file has been re-factored from `PackageManager.h` and * copyrights have been carried across in 2021. */ #ifndef DESKBAR_LINK_H #define DESKBAR_LINK_H #include #include class DeskbarLink : public BArchivable { public: DeskbarLink(); DeskbarLink(const BString& path, const BString& link); DeskbarLink(const DeskbarLink& other); DeskbarLink(BMessage* from); virtual ~DeskbarLink(); const BString Path() const; const BString Link() const; const BString Title() const; bool operator==(const DeskbarLink& other); bool operator!=(const DeskbarLink& other); DeskbarLink& operator=(const DeskbarLink& other); status_t Archive(BMessage* into, bool deep = true) const; private: BString fPath; BString fLink; }; #endif // DESKBAR_LINK_H