StandardPaths.h 626 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <AK/Error.h>
  8. #include <AK/Forward.h>
  9. namespace Core {
  10. class StandardPaths {
  11. public:
  12. static DeprecatedString home_directory();
  13. static DeprecatedString desktop_directory();
  14. static DeprecatedString documents_directory();
  15. static DeprecatedString downloads_directory();
  16. static DeprecatedString tempfile_directory();
  17. static DeprecatedString config_directory();
  18. static DeprecatedString data_directory();
  19. static ErrorOr<DeprecatedString> runtime_directory();
  20. };
  21. }