| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Objects.Signature
Contents
Description
Represents an action signature.
- newtype Signature = Signature (ManagedPtr Signature)
- class GObject o => IsSignature o
- toSignature :: (MonadIO m, IsSignature o) => o -> m Signature
- noSignature :: Maybe Signature
- signatureCopy :: (HasCallStack, MonadIO m, IsSignature a) => a -> m Signature
- signatureGetEmail :: (HasCallStack, MonadIO m, IsSignature a) => a -> m Text
- signatureGetName :: (HasCallStack, MonadIO m, IsSignature a) => a -> m Text
- signatureGetTime :: (HasCallStack, MonadIO m, IsSignature a) => a -> m DateTime
- signatureGetTimeZone :: (HasCallStack, MonadIO m, IsSignature a) => a -> m TimeZone
- signatureNew :: (HasCallStack, MonadIO m) => Text -> Text -> DateTime -> m Signature
- signatureNewNow :: (HasCallStack, MonadIO m) => Text -> Text -> m Signature
- constructSignatureEncoding :: IsSignature o => Text -> IO (GValueConstruct o)
- getSignatureEncoding :: (MonadIO m, IsSignature o) => o -> m (Maybe Text)
Exported types
Constructors
| Signature (ManagedPtr Signature) |
class GObject o => IsSignature o Source #
Instances
toSignature :: (MonadIO m, IsSignature o) => o -> m Signature Source #
Methods
copy
Arguments
| :: (HasCallStack, MonadIO m, IsSignature a) | |
| => a |
|
| -> m Signature | Returns: a |
Create a copy of the signature.
getEmail
Arguments
| :: (HasCallStack, MonadIO m, IsSignature a) | |
| => a |
|
| -> m Text | Returns: the email of the person. |
Gets the email of the person.
getName
Arguments
| :: (HasCallStack, MonadIO m, IsSignature a) | |
| => a |
|
| -> m Text | Returns: the name of the person. |
Gets the name of the person.
getTime
Arguments
| :: (HasCallStack, MonadIO m, IsSignature a) | |
| => a |
|
| -> m DateTime | Returns: the time when the action happened. |
Gets the time when the action happened. Note that the time is returned in
the timezone of the commit (see ggit_signature_get_time_zone).
getTimeZone
Arguments
| :: (HasCallStack, MonadIO m, IsSignature a) | |
| => a |
|
| -> m TimeZone | Returns: the timezone in which the action happened. |
Gets the timezone in which the action happened.
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Text |
|
| -> DateTime |
|
| -> m Signature |
Creates a new Signature. Name and e-mail are assumed to be in UTF-8.
newNow
Arguments
| :: (HasCallStack, MonadIO m) | |
| => Text |
|
| -> Text |
|
| -> m Signature |
Creates a new Signature with a timestamp of 'now'. Name and e-mail are
assumed to be in UTF-8.
Properties
encoding
constructSignatureEncoding :: IsSignature o => Text -> IO (GValueConstruct o) Source #
getSignatureEncoding :: (MonadIO m, IsSignature o) => o -> m (Maybe Text) Source #