// SPDX-FileCopyrightText: Copyright 2023 Open Mobile Platform LLC // SPDX-License-Identifier: BSD-3-Clause import 'dart:ffi'; import 'package:ffi/ffi.dart'; import 'xdga_directories_bindings_generated.dart'; /// The dynamic library in which the symbols for [XdgaDirectoriesBindings] can be found. final DynamicLibrary _dylib = () { return DynamicLibrary.open('libxdga_directories.so'); }(); /// The bindings to the native functions in [_dylib]. final XdgaDirectoriesBindings _bindings = XdgaDirectoriesBindings(_dylib); /// QStandardPaths::CacheLocation String getCacheLocation() => _bindings.getCacheLocation().cast().toDartString(); /// QStandardPaths::AppDataLocation String getAppDataLocation() => _bindings.getAppDataLocation().cast().toDartString(); /// QStandardPaths::DocumentsLocation String getDocumentsLocation() => _bindings.getDocumentsLocation().cast().toDartString(); /// QStandardPaths::DownloadLocation String getDownloadLocation() => _bindings.getDownloadLocation().cast().toDartString(); /// QStandardPaths::MusicLocation String getMusicLocation() => _bindings.getMusicLocation().cast().toDartString(); /// QStandardPaths::PicturesLocation String getPicturesLocation() => _bindings.getPicturesLocation().cast().toDartString(); /// QStandardPaths::GenericDataLocation String getGenericDataLocation() => _bindings.getGenericDataLocation().cast().toDartString(); /// QStandardPaths::MoviesLocation String getMoviesLocation() => _bindings.getMoviesLocation().cast().toDartString();