diff options
author | Christian Kamm <mail@ckamm.de> | 2017-05-10 10:37:10 +0300 |
---|---|---|
committer | Christian Kamm <mail@ckamm.de> | 2017-07-07 11:49:51 +0300 |
commit | 0238a29c7cd8bffce79ac684d3aae15bed481412 (patch) | |
tree | 4593643a79402585a99c0476c2b22e2dd1e6a7ee /src/gui/guiutility.h | |
parent | d01065b9a12e69ca493a232f3a8e8f3d416fed52 (diff) |
Introduce private link sharing #5023
* SocketAPI has COPL_LOCAL_LINK / EMAIL_LOCAL_LINK commands
* The nautilus and dolphing shell integrations show a submenu from which
one can share as well as access the private link.
* The SocketAPI provides a new GET_STRINGS command to access localized
strings.
* The private link can also be accessed from the user/group sharing
dialog.
* The numeric file id is extracted from the full id to create the
private link url.
Diffstat (limited to 'src/gui/guiutility.h')
-rw-r--r-- | src/gui/guiutility.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/gui/guiutility.h b/src/gui/guiutility.h new file mode 100644 index 000000000..55f808ac2 --- /dev/null +++ b/src/gui/guiutility.h @@ -0,0 +1,41 @@ +/* + * Copyright (C) by Christian Kamm <mail@ckamm.de> + * + * 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 2 of the License, or + * (at your option) 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. + */ + +#ifndef GUIUTILITY_H +#define GUIUTILITY_H + +#include <QString> +#include <QUrl> +#include <QWidget> + +namespace OCC { +namespace Utility { + + /** Open an url in the browser. + * + * If launching the browser fails, display a message. + */ + bool openBrowser(const QUrl &url, QWidget *errorWidgetParent); + + /** Start composing a new email message. + * + * If launching the email program fails, display a message. + */ + bool openEmailComposer(const QString &subject, const QString &body, + QWidget *errorWidgetParent); + +} // namespace Utility +} // namespace OCC + +#endif |