### Class

# Foundry Context

#### Description [src]

    final class Foundry.Context : GObject.Object
    {
      /* No available fields */
    }

The central object representing an open project.

FoundryContext serves as the main coordinator for all Foundry services and provides access to managers for files, builds, debugging, and other development tools. It maintains the application state and facilitates communication between different components of the development environment.

#### Ancestors

- GObject

#### Constructors

###### foundry_context_new

Creates a new context.

###### foundry_context_new_for_user

No description available.

#### Functions

###### foundry_context_discover

Attempts to locate the nearest .foundry directory starting from `path`.

###### foundry_context_error_quark

No description available.

#### Instance methods

###### foundry_context_cache_file

No description available.

###### foundry_context_cache_filename

No description available.

###### foundry_context_dup_action_group

Gets a `GActionGroup` that contains various actions for the context.

###### foundry_context_dup_build_manager

Gets the `FoundryBuildManager` instance.

###### foundry_context_dup_build_system

Gets the name of the build system to use.

###### foundry_context_dup_command_manager

Gets the `FoundryCommandManager` instance.

###### foundry_context_dup_config_manager

Gets the `FoundryConfigManager` instance.

###### foundry_context_dup_dbus_service

Gets the `FoundryDBusService` instance.

###### foundry_context_dup_debugger_manager

Gets the `FoundryDebuggerManager` instance.

###### foundry_context_dup_default_license

No description available.

###### foundry_context_dup_dependency_manager

Gets the `FoundryDependencyManager` instance.

###### foundry_context_dup_device_manager

Gets the `FoundryDeviceManager` instance.

###### foundry_context_dup_diagnostic_manager

Gets the `FoundryDiagnosticManager` instance.

###### foundry_context_dup_doap_service

Gets the `FoundryDoapService` instance.

since: 1.1

###### foundry_context_dup_documentation_manager

Gets the `FoundryDocumentationManager` instance.

###### foundry_context_dup_file_manager

Gets the `FoundryFileManager` instance.

###### foundry_context_dup_forge_manager

Gets the `FoundryForgeManager` instance.

###### foundry_context_dup_intent_manager

Gets the `FoundryIntentManager` instance.

###### foundry_context_dup_llm_manager

Gets the `FoundryLlmManager` instance.

###### foundry_context_dup_log_manager

Gets the `FoundryLogManager` instance.

###### foundry_context_dup_lsp_manager

Gets the `FoundryLspManager` instance.

###### foundry_context_dup_operation_manager

Gets the `FoundryOperationManager` instance.

###### foundry_context_dup_project_directory

Gets the `FoundryContext:project-directory`.

###### foundry_context_dup_run_manager

Gets the `FoundryRunManager` instance.

###### foundry_context_dup_sdk_manager

Gets the `FoundrySdkManager` instance.

###### foundry_context_dup_search_manager

Gets the `FoundrySearchManager` instance.

###### foundry_context_dup_secret_service

Gets the `FoundrySecretService` instance.

###### foundry_context_dup_service_typed

No description available.

###### foundry_context_dup_state_directory

Gets the `FoundryContext:state-directory`.

###### foundry_context_dup_terminal_service

Gets the `FoundryTerminalService` instance.

###### foundry_context_dup_test_manager

Gets the `FoundryTestManager` instance.

###### foundry_context_dup_text_manager

Gets the `FoundryTextManager` instance.

###### foundry_context_dup_title

No description available.

###### foundry_context_dup_tweak_manager

Gets the `FoundryTweakManager` instance.

###### foundry_context_dup_vcs_manager

Gets the `FoundryVcsManager` instance.

###### foundry_context_is_shared

No description available.

###### foundry_context_list_services

No description available.

###### foundry_context_load_project_settings

This function is functionally equivalent to calling `foundry_context_load_settings()` with the “org.gnome.foundry.project” gsettings schema id.

###### foundry_context_load_settings

Loads layered `GSettings` as a `FoundrySettings`.

###### foundry_context_log

No description available.

###### foundry_context_logv

No description available.

###### foundry_context_network_allowed

Checks if network is currently allowed.

###### foundry_context_save

Save the foundry state to the `FoundryContext:directory`.

###### foundry_context_set_title

No description available.

###### foundry_context_shutdown

Requests that the context shutdown and cleanup state.

###### foundry_context_tmp_filename

Returns a path that will be in the “tmp/” directory of the .foundry dir.

since: 1.1

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Foundry.Context:build-manager

No description available.

###### Foundry.Context:build-system

No description available.

###### Foundry.Context:command-manager

No description available.

###### Foundry.Context:config-manager

No description available.

###### Foundry.Context:debugger-manager

No description available.

###### Foundry.Context:dependency-manager

No description available.

###### Foundry.Context:device-manager

No description available.

###### Foundry.Context:diagnostic-manager

No description available.

###### Foundry.Context:doap-service

No description available.

since: 1.1

###### Foundry.Context:documentation-manager

No description available.

###### Foundry.Context:file-manager

No description available.

###### Foundry.Context:forge-manager

No description available.

since: 1.1

###### Foundry.Context:intent-manager

No description available.

###### Foundry.Context:llm-manager

No description available.

###### Foundry.Context:log-manager

No description available.

###### Foundry.Context:lsp-manager

No description available.

###### Foundry.Context:operation-manager

No description available.

###### Foundry.Context:project-directory

The directory containing the project.

###### Foundry.Context:run-manager

No description available.

###### Foundry.Context:sdk-manager

No description available.

###### Foundry.Context:search-manager

No description available.

###### Foundry.Context:secret-service

No description available.

###### Foundry.Context:state-directory

The directory of the context, which is typically “.foundry” within the `FoundryContext:project-directory`.

###### Foundry.Context:terminal-service

No description available.

###### Foundry.Context:test-manager

No description available.

###### Foundry.Context:text-manager

No description available.

###### Foundry.Context:title

No description available.

###### Foundry.Context:tweak-manager

No description available.

###### Foundry.Context:vcs-manager

No description available.

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

#### Class structure

    struct FoundryContextClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`

  No description available.