EDataCal.CalCacheOfflineChange.new
Description: Reference for EDataCal.CalCacheOfflineChange.new

### Function

# EDataCal CalCacheOfflineChangenew

since: 3.26

#### Declaration [src]

    ECalCacheOfflineChange*
    e_cal_cache_offline_change_new (
      const gchar* uid,
      const gchar* rid,
      const gchar* revision,
      const gchar* object,
      EOfflineState state
    )

#### Description [src]

Creates a new `ECalCacheOfflineChange` with the offline `state` information for the given `uid`.

Available since: 3.26

#### Parameters

`uid`

  Type: `const gchar*`

  A unique component identifier.

  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`rid`

  Type: `const gchar*`

  A Recurrence-ID of the component.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`revision`

  Type: `const gchar*`

  A revision of the component.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`object`

  Type: `const gchar*`

  Component itself.

  The argument can be `NULL`.
  The data is owned by the caller of the function.
  The value is a NUL terminated UTF-8 string.

`state`

  Type: `EOfflineState`

  An `EOfflineState`.

#### Return value

Type: `ECalCacheOfflineChange`

A new `ECalCacheOfflineChange`. Free it with `e_cal_cache_offline_change_free()` when no longer needed.

The caller of the function takes ownership of the data, and is responsible for freeing it.