blob: 8e44ee7388fe14776dcd2016ebd0e7e4caaf7993 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_UWPTOOL_UTILS_H_
#define FLUTTER_SHELL_PLATFORM_WINDOWS_UWPTOOL_UTILS_H_
#include <string>
#include <vector>
#include "flutter/shell/platform/windows/registry.h"
namespace flutter {
// A UWP application.
class Application {
public:
explicit Application(const std::wstring_view package_id);
Application(const Application& other) = default;
Application& operator=(const Application& other) = default;
// Returns the application user model ID.
std::wstring GetPackageId() const { return package_id_; }
// Launches the application with the specified list of launch arguments.
int Launch(const std::wstring_view args);
private:
std::wstring package_id_;
};
// The machine-local store of installed applications.
class ApplicationStore {
public:
ApplicationStore() = default;
// Prevent copying.
ApplicationStore(const ApplicationStore& other) = delete;
ApplicationStore& operator=(const ApplicationStore& other) = delete;
// Returns a list of all installed application user model IDs.
std::vector<Application> GetInstalledApplications();
};
} // namespace flutter
#endif // FLUTTER_SHELL_PLATFORM_WINDOWS_UWPTOOL_UTILS_H_