{-# LANGUAGE TypeApplications #-}


-- | Copyright  : Will Thompson and Iñaki García Etxebarria
-- License    : LGPL-2.1
-- Maintainer : Iñaki García Etxebarria
-- 
-- CDMA-based Mobile Broadband Settings

#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif

module GI.NM.Objects.SettingCdma
    ( 

-- * Exported types
    SettingCdma(..)                         ,
    IsSettingCdma                           ,
    toSettingCdma                           ,


 -- * Methods
-- | 
-- 
--  === __Click to display all available methods, including inherited ones__
-- ==== Methods
-- [bindProperty]("GI.GObject.Objects.Object#g:method:bindProperty"), [bindPropertyFull]("GI.GObject.Objects.Object#g:method:bindPropertyFull"), [compare]("GI.NM.Objects.Setting#g:method:compare"), [diff]("GI.NM.Objects.Setting#g:method:diff"), [duplicate]("GI.NM.Objects.Setting#g:method:duplicate"), [enumerateValues]("GI.NM.Objects.Setting#g:method:enumerateValues"), [forceFloating]("GI.GObject.Objects.Object#g:method:forceFloating"), [freezeNotify]("GI.GObject.Objects.Object#g:method:freezeNotify"), [getv]("GI.GObject.Objects.Object#g:method:getv"), [isFloating]("GI.GObject.Objects.Object#g:method:isFloating"), [notify]("GI.GObject.Objects.Object#g:method:notify"), [notifyByPspec]("GI.GObject.Objects.Object#g:method:notifyByPspec"), [optionClearByName]("GI.NM.Objects.Setting#g:method:optionClearByName"), [optionGet]("GI.NM.Objects.Setting#g:method:optionGet"), [optionGetAllNames]("GI.NM.Objects.Setting#g:method:optionGetAllNames"), [optionGetBoolean]("GI.NM.Objects.Setting#g:method:optionGetBoolean"), [optionGetUint32]("GI.NM.Objects.Setting#g:method:optionGetUint32"), [optionSet]("GI.NM.Objects.Setting#g:method:optionSet"), [optionSetBoolean]("GI.NM.Objects.Setting#g:method:optionSetBoolean"), [optionSetUint32]("GI.NM.Objects.Setting#g:method:optionSetUint32"), [ref]("GI.GObject.Objects.Object#g:method:ref"), [refSink]("GI.GObject.Objects.Object#g:method:refSink"), [runDispose]("GI.GObject.Objects.Object#g:method:runDispose"), [stealData]("GI.GObject.Objects.Object#g:method:stealData"), [stealQdata]("GI.GObject.Objects.Object#g:method:stealQdata"), [thawNotify]("GI.GObject.Objects.Object#g:method:thawNotify"), [toString]("GI.NM.Objects.Setting#g:method:toString"), [unref]("GI.GObject.Objects.Object#g:method:unref"), [verify]("GI.NM.Objects.Setting#g:method:verify"), [verifySecrets]("GI.NM.Objects.Setting#g:method:verifySecrets"), [watchClosure]("GI.GObject.Objects.Object#g:method:watchClosure").
-- 
-- ==== Getters
-- [getData]("GI.GObject.Objects.Object#g:method:getData"), [getDbusPropertyType]("GI.NM.Objects.Setting#g:method:getDbusPropertyType"), [getMtu]("GI.NM.Objects.SettingCdma#g:method:getMtu"), [getName]("GI.NM.Objects.Setting#g:method:getName"), [getNumber]("GI.NM.Objects.SettingCdma#g:method:getNumber"), [getPassword]("GI.NM.Objects.SettingCdma#g:method:getPassword"), [getPasswordFlags]("GI.NM.Objects.SettingCdma#g:method:getPasswordFlags"), [getProperty]("GI.GObject.Objects.Object#g:method:getProperty"), [getQdata]("GI.GObject.Objects.Object#g:method:getQdata"), [getSecretFlags]("GI.NM.Objects.Setting#g:method:getSecretFlags"), [getUsername]("GI.NM.Objects.SettingCdma#g:method:getUsername").
-- 
-- ==== Setters
-- [setData]("GI.GObject.Objects.Object#g:method:setData"), [setDataFull]("GI.GObject.Objects.Object#g:method:setDataFull"), [setProperty]("GI.GObject.Objects.Object#g:method:setProperty"), [setSecretFlags]("GI.NM.Objects.Setting#g:method:setSecretFlags").

#if defined(ENABLE_OVERLOADING)
    ResolveSettingCdmaMethod                ,
#endif

-- ** getMtu #method:getMtu#

#if defined(ENABLE_OVERLOADING)
    SettingCdmaGetMtuMethodInfo             ,
#endif
    settingCdmaGetMtu                       ,


-- ** getNumber #method:getNumber#

#if defined(ENABLE_OVERLOADING)
    SettingCdmaGetNumberMethodInfo          ,
#endif
    settingCdmaGetNumber                    ,


-- ** getPassword #method:getPassword#

#if defined(ENABLE_OVERLOADING)
    SettingCdmaGetPasswordMethodInfo        ,
#endif
    settingCdmaGetPassword                  ,


-- ** getPasswordFlags #method:getPasswordFlags#

#if defined(ENABLE_OVERLOADING)
    SettingCdmaGetPasswordFlagsMethodInfo   ,
#endif
    settingCdmaGetPasswordFlags             ,


-- ** getUsername #method:getUsername#

#if defined(ENABLE_OVERLOADING)
    SettingCdmaGetUsernameMethodInfo        ,
#endif
    settingCdmaGetUsername                  ,


-- ** new #method:new#

    settingCdmaNew                          ,




 -- * Properties


-- ** mtu #attr:mtu#
-- | If non-zero, only transmit packets of the specified size or smaller,
-- breaking larger packets up into multiple frames.
-- 
-- /Since: 1.8/

#if defined(ENABLE_OVERLOADING)
    SettingCdmaMtuPropertyInfo              ,
#endif
    constructSettingCdmaMtu                 ,
    getSettingCdmaMtu                       ,
    setSettingCdmaMtu                       ,
#if defined(ENABLE_OVERLOADING)
    settingCdmaMtu                          ,
#endif


-- ** number #attr:number#
-- | The number to dial to establish the connection to the CDMA-based mobile
-- broadband network, if any.  If not specified, the default number (@/777/@)
-- is used when required.

#if defined(ENABLE_OVERLOADING)
    SettingCdmaNumberPropertyInfo           ,
#endif
    clearSettingCdmaNumber                  ,
    constructSettingCdmaNumber              ,
    getSettingCdmaNumber                    ,
    setSettingCdmaNumber                    ,
#if defined(ENABLE_OVERLOADING)
    settingCdmaNumber                       ,
#endif


-- ** password #attr:password#
-- | The password used to authenticate with the network, if required.  Many
-- providers do not require a password, or accept any password.  But if a
-- password is required, it is specified here.

#if defined(ENABLE_OVERLOADING)
    SettingCdmaPasswordPropertyInfo         ,
#endif
    clearSettingCdmaPassword                ,
    constructSettingCdmaPassword            ,
    getSettingCdmaPassword                  ,
    setSettingCdmaPassword                  ,
#if defined(ENABLE_OVERLOADING)
    settingCdmaPassword                     ,
#endif


-- ** passwordFlags #attr:passwordFlags#
-- | Flags indicating how to handle the [SettingCdma:password]("GI.NM.Objects.SettingCdma#g:attr:password") property.

#if defined(ENABLE_OVERLOADING)
    SettingCdmaPasswordFlagsPropertyInfo    ,
#endif
    constructSettingCdmaPasswordFlags       ,
    getSettingCdmaPasswordFlags             ,
    setSettingCdmaPasswordFlags             ,
#if defined(ENABLE_OVERLOADING)
    settingCdmaPasswordFlags                ,
#endif


-- ** username #attr:username#
-- | The username used to authenticate with the network, if required.  Many
-- providers do not require a username, or accept any username.  But if a
-- username is required, it is specified here.

#if defined(ENABLE_OVERLOADING)
    SettingCdmaUsernamePropertyInfo         ,
#endif
    clearSettingCdmaUsername                ,
    constructSettingCdmaUsername            ,
    getSettingCdmaUsername                  ,
    setSettingCdmaUsername                  ,
#if defined(ENABLE_OVERLOADING)
    settingCdmaUsername                     ,
#endif




    ) where

import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P

import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
import qualified Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GHC.OverloadedLabels as OL
import qualified GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT

-- Workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/23392
#if MIN_VERSION_base(4,18,0)
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GLib.Structs.VariantType as GLib.VariantType
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.NM.Callbacks as NM.Callbacks
import {-# SOURCE #-} qualified GI.NM.Enums as NM.Enums
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Interfaces.Connection as NM.Connection
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting
import {-# SOURCE #-} qualified GI.NM.Objects.Setting8021x as NM.Setting8021x
import {-# SOURCE #-} qualified GI.NM.Objects.SettingAdsl as NM.SettingAdsl
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBluetooth as NM.SettingBluetooth
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBond as NM.SettingBond
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridge as NM.SettingBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingBridgePort as NM.SettingBridgePort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingConnection as NM.SettingConnection
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDcb as NM.SettingDcb
import {-# SOURCE #-} qualified GI.NM.Objects.SettingDummy as NM.SettingDummy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGeneric as NM.SettingGeneric
import {-# SOURCE #-} qualified GI.NM.Objects.SettingGsm as NM.SettingGsm
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP4Config as NM.SettingIP4Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIP6Config as NM.SettingIP6Config
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPConfig as NM.SettingIPConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingIPTunnel as NM.SettingIPTunnel
import {-# SOURCE #-} qualified GI.NM.Objects.SettingInfiniband as NM.SettingInfiniband
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacsec as NM.SettingMacsec
import {-# SOURCE #-} qualified GI.NM.Objects.SettingMacvlan as NM.SettingMacvlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOlpcMesh as NM.SettingOlpcMesh
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsBridge as NM.SettingOvsBridge
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsInterface as NM.SettingOvsInterface
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPatch as NM.SettingOvsPatch
import {-# SOURCE #-} qualified GI.NM.Objects.SettingOvsPort as NM.SettingOvsPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPpp as NM.SettingPpp
import {-# SOURCE #-} qualified GI.NM.Objects.SettingPppoe as NM.SettingPppoe
import {-# SOURCE #-} qualified GI.NM.Objects.SettingProxy as NM.SettingProxy
import {-# SOURCE #-} qualified GI.NM.Objects.SettingSerial as NM.SettingSerial
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTCConfig as NM.SettingTCConfig
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeam as NM.SettingTeam
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTeamPort as NM.SettingTeamPort
import {-# SOURCE #-} qualified GI.NM.Objects.SettingTun as NM.SettingTun
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVlan as NM.SettingVlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVpn as NM.SettingVpn
import {-# SOURCE #-} qualified GI.NM.Objects.SettingVxlan as NM.SettingVxlan
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWimax as NM.SettingWimax
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWired as NM.SettingWired
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWireless as NM.SettingWireless
import {-# SOURCE #-} qualified GI.NM.Objects.SettingWirelessSecurity as NM.SettingWirelessSecurity
import {-# SOURCE #-} qualified GI.NM.Structs.BridgeVlan as NM.BridgeVlan
import {-# SOURCE #-} qualified GI.NM.Structs.IPAddress as NM.IPAddress
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoute as NM.IPRoute
import {-# SOURCE #-} qualified GI.NM.Structs.IPRoutingRule as NM.IPRoutingRule
import {-# SOURCE #-} qualified GI.NM.Structs.Range as NM.Range
import {-# SOURCE #-} qualified GI.NM.Structs.TCAction as NM.TCAction
import {-# SOURCE #-} qualified GI.NM.Structs.TCQdisc as NM.TCQdisc
import {-# SOURCE #-} qualified GI.NM.Structs.TCTfilter as NM.TCTfilter
import {-# SOURCE #-} qualified GI.NM.Structs.TeamLinkWatcher as NM.TeamLinkWatcher
import {-# SOURCE #-} qualified GI.NM.Structs.VariantAttributeSpec as NM.VariantAttributeSpec

#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.NM.Flags as NM.Flags
import {-# SOURCE #-} qualified GI.NM.Objects.Setting as NM.Setting

#endif

-- | Memory-managed wrapper type.
newtype SettingCdma = SettingCdma (SP.ManagedPtr SettingCdma)
    deriving (SettingCdma -> SettingCdma -> Bool
(SettingCdma -> SettingCdma -> Bool)
-> (SettingCdma -> SettingCdma -> Bool) -> Eq SettingCdma
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: SettingCdma -> SettingCdma -> Bool
== :: SettingCdma -> SettingCdma -> Bool
$c/= :: SettingCdma -> SettingCdma -> Bool
/= :: SettingCdma -> SettingCdma -> Bool
Eq)

instance SP.ManagedPtrNewtype SettingCdma where
    toManagedPtr :: SettingCdma -> ManagedPtr SettingCdma
toManagedPtr (SettingCdma ManagedPtr SettingCdma
p) = ManagedPtr SettingCdma
p

foreign import ccall "nm_setting_cdma_get_type"
    c_nm_setting_cdma_get_type :: IO B.Types.GType

instance B.Types.TypedObject SettingCdma where
    glibType :: IO GType
glibType = IO GType
c_nm_setting_cdma_get_type

instance B.Types.GObject SettingCdma

-- | Type class for types which can be safely cast to t'SettingCdma', for instance with `toSettingCdma`.
class (SP.GObject o, O.IsDescendantOf SettingCdma o) => IsSettingCdma o
instance (SP.GObject o, O.IsDescendantOf SettingCdma o) => IsSettingCdma o

instance O.HasParentTypes SettingCdma
type instance O.ParentTypes SettingCdma = '[NM.Setting.Setting, GObject.Object.Object]

-- | Cast to t'SettingCdma', for types for which this is known to be safe. For general casts, use 'Data.GI.Base.ManagedPtr.castTo'.
toSettingCdma :: (MIO.MonadIO m, IsSettingCdma o) => o -> m SettingCdma
toSettingCdma :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> m SettingCdma
toSettingCdma = IO SettingCdma -> m SettingCdma
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO SettingCdma -> m SettingCdma)
-> (o -> IO SettingCdma) -> o -> m SettingCdma
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr SettingCdma -> SettingCdma) -> o -> IO SettingCdma
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
 ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr SettingCdma -> SettingCdma
SettingCdma

-- | Convert t'SettingCdma' to and from t'Data.GI.Base.GValue.GValue'. See 'Data.GI.Base.GValue.toGValue' and 'Data.GI.Base.GValue.fromGValue'.
instance B.GValue.IsGValue (Maybe SettingCdma) where
    gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_nm_setting_cdma_get_type
    gvalueSet_ :: Ptr GValue -> Maybe SettingCdma -> IO ()
gvalueSet_ Ptr GValue
gv Maybe SettingCdma
P.Nothing = Ptr GValue -> Ptr SettingCdma -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr SettingCdma
forall a. Ptr a
FP.nullPtr :: FP.Ptr SettingCdma)
    gvalueSet_ Ptr GValue
gv (P.Just SettingCdma
obj) = SettingCdma -> (Ptr SettingCdma -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr SettingCdma
obj (Ptr GValue -> Ptr SettingCdma -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
    gvalueGet_ :: Ptr GValue -> IO (Maybe SettingCdma)
gvalueGet_ Ptr GValue
gv = do
        Ptr SettingCdma
ptr <- Ptr GValue -> IO (Ptr SettingCdma)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr SettingCdma)
        if Ptr SettingCdma
ptr Ptr SettingCdma -> Ptr SettingCdma -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr SettingCdma
forall a. Ptr a
FP.nullPtr
        then SettingCdma -> Maybe SettingCdma
forall a. a -> Maybe a
P.Just (SettingCdma -> Maybe SettingCdma)
-> IO SettingCdma -> IO (Maybe SettingCdma)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr SettingCdma -> SettingCdma)
-> Ptr SettingCdma -> IO SettingCdma
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr SettingCdma -> SettingCdma
SettingCdma Ptr SettingCdma
ptr
        else Maybe SettingCdma -> IO (Maybe SettingCdma)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe SettingCdma
forall a. Maybe a
P.Nothing
        
    

#if defined(ENABLE_OVERLOADING)
type family ResolveSettingCdmaMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
    ResolveSettingCdmaMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
    ResolveSettingCdmaMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
    ResolveSettingCdmaMethod "compare" o = NM.Setting.SettingCompareMethodInfo
    ResolveSettingCdmaMethod "diff" o = NM.Setting.SettingDiffMethodInfo
    ResolveSettingCdmaMethod "duplicate" o = NM.Setting.SettingDuplicateMethodInfo
    ResolveSettingCdmaMethod "enumerateValues" o = NM.Setting.SettingEnumerateValuesMethodInfo
    ResolveSettingCdmaMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
    ResolveSettingCdmaMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
    ResolveSettingCdmaMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
    ResolveSettingCdmaMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
    ResolveSettingCdmaMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
    ResolveSettingCdmaMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
    ResolveSettingCdmaMethod "optionClearByName" o = NM.Setting.SettingOptionClearByNameMethodInfo
    ResolveSettingCdmaMethod "optionGet" o = NM.Setting.SettingOptionGetMethodInfo
    ResolveSettingCdmaMethod "optionGetAllNames" o = NM.Setting.SettingOptionGetAllNamesMethodInfo
    ResolveSettingCdmaMethod "optionGetBoolean" o = NM.Setting.SettingOptionGetBooleanMethodInfo
    ResolveSettingCdmaMethod "optionGetUint32" o = NM.Setting.SettingOptionGetUint32MethodInfo
    ResolveSettingCdmaMethod "optionSet" o = NM.Setting.SettingOptionSetMethodInfo
    ResolveSettingCdmaMethod "optionSetBoolean" o = NM.Setting.SettingOptionSetBooleanMethodInfo
    ResolveSettingCdmaMethod "optionSetUint32" o = NM.Setting.SettingOptionSetUint32MethodInfo
    ResolveSettingCdmaMethod "ref" o = GObject.Object.ObjectRefMethodInfo
    ResolveSettingCdmaMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
    ResolveSettingCdmaMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
    ResolveSettingCdmaMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
    ResolveSettingCdmaMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
    ResolveSettingCdmaMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
    ResolveSettingCdmaMethod "toString" o = NM.Setting.SettingToStringMethodInfo
    ResolveSettingCdmaMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
    ResolveSettingCdmaMethod "verify" o = NM.Setting.SettingVerifyMethodInfo
    ResolveSettingCdmaMethod "verifySecrets" o = NM.Setting.SettingVerifySecretsMethodInfo
    ResolveSettingCdmaMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
    ResolveSettingCdmaMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
    ResolveSettingCdmaMethod "getDbusPropertyType" o = NM.Setting.SettingGetDbusPropertyTypeMethodInfo
    ResolveSettingCdmaMethod "getMtu" o = SettingCdmaGetMtuMethodInfo
    ResolveSettingCdmaMethod "getName" o = NM.Setting.SettingGetNameMethodInfo
    ResolveSettingCdmaMethod "getNumber" o = SettingCdmaGetNumberMethodInfo
    ResolveSettingCdmaMethod "getPassword" o = SettingCdmaGetPasswordMethodInfo
    ResolveSettingCdmaMethod "getPasswordFlags" o = SettingCdmaGetPasswordFlagsMethodInfo
    ResolveSettingCdmaMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
    ResolveSettingCdmaMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
    ResolveSettingCdmaMethod "getSecretFlags" o = NM.Setting.SettingGetSecretFlagsMethodInfo
    ResolveSettingCdmaMethod "getUsername" o = SettingCdmaGetUsernameMethodInfo
    ResolveSettingCdmaMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
    ResolveSettingCdmaMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
    ResolveSettingCdmaMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
    ResolveSettingCdmaMethod "setSecretFlags" o = NM.Setting.SettingSetSecretFlagsMethodInfo
    ResolveSettingCdmaMethod l o = O.MethodResolutionFailed l o

instance (info ~ ResolveSettingCdmaMethod t SettingCdma, O.OverloadedMethod info SettingCdma p) => OL.IsLabel t (SettingCdma -> p) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.overloadedMethod @info
#else
    fromLabel _ = O.overloadedMethod @info
#endif

#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolveSettingCdmaMethod t SettingCdma, O.OverloadedMethod info SettingCdma p, R.HasField t SettingCdma p) => R.HasField t SettingCdma p where
    getField = O.overloadedMethod @info

#endif

instance (info ~ ResolveSettingCdmaMethod t SettingCdma, O.OverloadedMethodInfo info SettingCdma) => OL.IsLabel t (O.MethodProxy info SettingCdma) where
#if MIN_VERSION_base(4,10,0)
    fromLabel = O.MethodProxy
#else
    fromLabel _ = O.MethodProxy
#endif

#endif

-- VVV Prop "mtu"
   -- Type: TBasicType TUInt
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Nothing,Nothing)

-- | Get the value of the “@mtu@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingCdma #mtu
-- @
getSettingCdmaMtu :: (MonadIO m, IsSettingCdma o) => o -> m Word32
getSettingCdmaMtu :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> m Word32
getSettingCdmaMtu o
obj = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Word32
forall a. GObject a => a -> String -> IO Word32
B.Properties.getObjectPropertyUInt32 o
obj String
"mtu"

-- | Set the value of the “@mtu@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingCdma [ #mtu 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingCdmaMtu :: (MonadIO m, IsSettingCdma o) => o -> Word32 -> m ()
setSettingCdmaMtu :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> Word32 -> m ()
setSettingCdmaMtu o
obj Word32
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Word32 -> IO ()
forall a. GObject a => a -> String -> Word32 -> IO ()
B.Properties.setObjectPropertyUInt32 o
obj String
"mtu" Word32
val

-- | Construct a t'GValueConstruct' with valid value for the “@mtu@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingCdmaMtu :: (IsSettingCdma o, MIO.MonadIO m) => Word32 -> m (GValueConstruct o)
constructSettingCdmaMtu :: forall o (m :: * -> *).
(IsSettingCdma o, MonadIO m) =>
Word32 -> m (GValueConstruct o)
constructSettingCdmaMtu Word32
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Word32 -> IO (GValueConstruct o)
forall o. String -> Word32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyUInt32 String
"mtu" Word32
val

#if defined(ENABLE_OVERLOADING)
data SettingCdmaMtuPropertyInfo
instance AttrInfo SettingCdmaMtuPropertyInfo where
    type AttrAllowedOps SettingCdmaMtuPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingCdmaMtuPropertyInfo = IsSettingCdma
    type AttrSetTypeConstraint SettingCdmaMtuPropertyInfo = (~) Word32
    type AttrTransferTypeConstraint SettingCdmaMtuPropertyInfo = (~) Word32
    type AttrTransferType SettingCdmaMtuPropertyInfo = Word32
    type AttrGetType SettingCdmaMtuPropertyInfo = Word32
    type AttrLabel SettingCdmaMtuPropertyInfo = "mtu"
    type AttrOrigin SettingCdmaMtuPropertyInfo = SettingCdma
    attrGet = getSettingCdmaMtu
    attrSet = setSettingCdmaMtu
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingCdmaMtu
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.mtu"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#g:attr:mtu"
        })
#endif

-- VVV Prop "number"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@number@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingCdma #number
-- @
getSettingCdmaNumber :: (MonadIO m, IsSettingCdma o) => o -> m T.Text
getSettingCdmaNumber :: forall (m :: * -> *) o. (MonadIO m, IsSettingCdma o) => o -> m Text
getSettingCdmaNumber o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingCdmaNumber" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"number"

-- | Set the value of the “@number@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingCdma [ #number 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingCdmaNumber :: (MonadIO m, IsSettingCdma o) => o -> T.Text -> m ()
setSettingCdmaNumber :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> Text -> m ()
setSettingCdmaNumber o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"number" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@number@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingCdmaNumber :: (IsSettingCdma o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingCdmaNumber :: forall o (m :: * -> *).
(IsSettingCdma o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingCdmaNumber Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"number" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@number@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #number
-- @
clearSettingCdmaNumber :: (MonadIO m, IsSettingCdma o) => o -> m ()
clearSettingCdmaNumber :: forall (m :: * -> *) o. (MonadIO m, IsSettingCdma o) => o -> m ()
clearSettingCdmaNumber o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"number" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingCdmaNumberPropertyInfo
instance AttrInfo SettingCdmaNumberPropertyInfo where
    type AttrAllowedOps SettingCdmaNumberPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingCdmaNumberPropertyInfo = IsSettingCdma
    type AttrSetTypeConstraint SettingCdmaNumberPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingCdmaNumberPropertyInfo = (~) T.Text
    type AttrTransferType SettingCdmaNumberPropertyInfo = T.Text
    type AttrGetType SettingCdmaNumberPropertyInfo = T.Text
    type AttrLabel SettingCdmaNumberPropertyInfo = "number"
    type AttrOrigin SettingCdmaNumberPropertyInfo = SettingCdma
    attrGet = getSettingCdmaNumber
    attrSet = setSettingCdmaNumber
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingCdmaNumber
    attrClear = clearSettingCdmaNumber
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.number"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#g:attr:number"
        })
#endif

-- VVV Prop "password"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@password@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingCdma #password
-- @
getSettingCdmaPassword :: (MonadIO m, IsSettingCdma o) => o -> m T.Text
getSettingCdmaPassword :: forall (m :: * -> *) o. (MonadIO m, IsSettingCdma o) => o -> m Text
getSettingCdmaPassword o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingCdmaPassword" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"password"

-- | Set the value of the “@password@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingCdma [ #password 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingCdmaPassword :: (MonadIO m, IsSettingCdma o) => o -> T.Text -> m ()
setSettingCdmaPassword :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> Text -> m ()
setSettingCdmaPassword o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"password" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@password@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingCdmaPassword :: (IsSettingCdma o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingCdmaPassword :: forall o (m :: * -> *).
(IsSettingCdma o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingCdmaPassword Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"password" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@password@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #password
-- @
clearSettingCdmaPassword :: (MonadIO m, IsSettingCdma o) => o -> m ()
clearSettingCdmaPassword :: forall (m :: * -> *) o. (MonadIO m, IsSettingCdma o) => o -> m ()
clearSettingCdmaPassword o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"password" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingCdmaPasswordPropertyInfo
instance AttrInfo SettingCdmaPasswordPropertyInfo where
    type AttrAllowedOps SettingCdmaPasswordPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingCdmaPasswordPropertyInfo = IsSettingCdma
    type AttrSetTypeConstraint SettingCdmaPasswordPropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingCdmaPasswordPropertyInfo = (~) T.Text
    type AttrTransferType SettingCdmaPasswordPropertyInfo = T.Text
    type AttrGetType SettingCdmaPasswordPropertyInfo = T.Text
    type AttrLabel SettingCdmaPasswordPropertyInfo = "password"
    type AttrOrigin SettingCdmaPasswordPropertyInfo = SettingCdma
    attrGet = getSettingCdmaPassword
    attrSet = setSettingCdmaPassword
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingCdmaPassword
    attrClear = clearSettingCdmaPassword
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.password"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#g:attr:password"
        })
#endif

-- VVV Prop "password-flags"
   -- Type: TInterface (Name {namespace = "NM", name = "SettingSecretFlags"})
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@password-flags@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingCdma #passwordFlags
-- @
getSettingCdmaPasswordFlags :: (MonadIO m, IsSettingCdma o) => o -> m [NM.Flags.SettingSecretFlags]
getSettingCdmaPasswordFlags :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> m [SettingSecretFlags]
getSettingCdmaPasswordFlags o
obj = IO [SettingSecretFlags] -> m [SettingSecretFlags]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO [SettingSecretFlags] -> m [SettingSecretFlags])
-> IO [SettingSecretFlags] -> m [SettingSecretFlags]
forall a b. (a -> b) -> a -> b
$ o -> String -> IO [SettingSecretFlags]
forall a b.
(GObject a, IsGFlag b, BoxedFlags b) =>
a -> String -> IO [b]
B.Properties.getObjectPropertyFlags o
obj String
"password-flags"

-- | Set the value of the “@password-flags@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingCdma [ #passwordFlags 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingCdmaPasswordFlags :: (MonadIO m, IsSettingCdma o) => o -> [NM.Flags.SettingSecretFlags] -> m ()
setSettingCdmaPasswordFlags :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> [SettingSecretFlags] -> m ()
setSettingCdmaPasswordFlags o
obj [SettingSecretFlags]
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> [SettingSecretFlags] -> IO ()
forall a b.
(IsGFlag b, BoxedFlags b, GObject a) =>
a -> String -> [b] -> IO ()
B.Properties.setObjectPropertyFlags o
obj String
"password-flags" [SettingSecretFlags]
val

-- | Construct a t'GValueConstruct' with valid value for the “@password-flags@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingCdmaPasswordFlags :: (IsSettingCdma o, MIO.MonadIO m) => [NM.Flags.SettingSecretFlags] -> m (GValueConstruct o)
constructSettingCdmaPasswordFlags :: forall o (m :: * -> *).
(IsSettingCdma o, MonadIO m) =>
[SettingSecretFlags] -> m (GValueConstruct o)
constructSettingCdmaPasswordFlags [SettingSecretFlags]
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> [SettingSecretFlags] -> IO (GValueConstruct o)
forall a o.
(IsGFlag a, BoxedFlags a) =>
String -> [a] -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyFlags String
"password-flags" [SettingSecretFlags]
val

#if defined(ENABLE_OVERLOADING)
data SettingCdmaPasswordFlagsPropertyInfo
instance AttrInfo SettingCdmaPasswordFlagsPropertyInfo where
    type AttrAllowedOps SettingCdmaPasswordFlagsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
    type AttrBaseTypeConstraint SettingCdmaPasswordFlagsPropertyInfo = IsSettingCdma
    type AttrSetTypeConstraint SettingCdmaPasswordFlagsPropertyInfo = (~) [NM.Flags.SettingSecretFlags]
    type AttrTransferTypeConstraint SettingCdmaPasswordFlagsPropertyInfo = (~) [NM.Flags.SettingSecretFlags]
    type AttrTransferType SettingCdmaPasswordFlagsPropertyInfo = [NM.Flags.SettingSecretFlags]
    type AttrGetType SettingCdmaPasswordFlagsPropertyInfo = [NM.Flags.SettingSecretFlags]
    type AttrLabel SettingCdmaPasswordFlagsPropertyInfo = "password-flags"
    type AttrOrigin SettingCdmaPasswordFlagsPropertyInfo = SettingCdma
    attrGet = getSettingCdmaPasswordFlags
    attrSet = setSettingCdmaPasswordFlags
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingCdmaPasswordFlags
    attrClear = undefined
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.passwordFlags"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#g:attr:passwordFlags"
        })
#endif

-- VVV Prop "username"
   -- Type: TBasicType TUTF8
   -- Flags: [PropertyReadable,PropertyWritable]
   -- Nullable: (Just False,Nothing)

-- | Get the value of the “@username@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.get' settingCdma #username
-- @
getSettingCdmaUsername :: (MonadIO m, IsSettingCdma o) => o -> m T.Text
getSettingCdmaUsername :: forall (m :: * -> *) o. (MonadIO m, IsSettingCdma o) => o -> m Text
getSettingCdmaUsername o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getSettingCdmaUsername" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"username"

-- | Set the value of the “@username@” property.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.set' settingCdma [ #username 'Data.GI.Base.Attributes.:=' value ]
-- @
setSettingCdmaUsername :: (MonadIO m, IsSettingCdma o) => o -> T.Text -> m ()
setSettingCdmaUsername :: forall (m :: * -> *) o.
(MonadIO m, IsSettingCdma o) =>
o -> Text -> m ()
setSettingCdmaUsername o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
    o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"username" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)

-- | Construct a t'GValueConstruct' with valid value for the “@username@” property. This is rarely needed directly, but it is used by `Data.GI.Base.Constructible.new`.
constructSettingCdmaUsername :: (IsSettingCdma o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructSettingCdmaUsername :: forall o (m :: * -> *).
(IsSettingCdma o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructSettingCdmaUsername Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
    IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"username" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)

-- | Set the value of the “@username@” property to `Nothing`.
-- When <https://github.com/haskell-gi/haskell-gi/wiki/Overloading overloading> is enabled, this is equivalent to
-- 
-- @
-- 'Data.GI.Base.Attributes.clear' #username
-- @
clearSettingCdmaUsername :: (MonadIO m, IsSettingCdma o) => o -> m ()
clearSettingCdmaUsername :: forall (m :: * -> *) o. (MonadIO m, IsSettingCdma o) => o -> m ()
clearSettingCdmaUsername o
obj = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"username" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)

#if defined(ENABLE_OVERLOADING)
data SettingCdmaUsernamePropertyInfo
instance AttrInfo SettingCdmaUsernamePropertyInfo where
    type AttrAllowedOps SettingCdmaUsernamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
    type AttrBaseTypeConstraint SettingCdmaUsernamePropertyInfo = IsSettingCdma
    type AttrSetTypeConstraint SettingCdmaUsernamePropertyInfo = (~) T.Text
    type AttrTransferTypeConstraint SettingCdmaUsernamePropertyInfo = (~) T.Text
    type AttrTransferType SettingCdmaUsernamePropertyInfo = T.Text
    type AttrGetType SettingCdmaUsernamePropertyInfo = T.Text
    type AttrLabel SettingCdmaUsernamePropertyInfo = "username"
    type AttrOrigin SettingCdmaUsernamePropertyInfo = SettingCdma
    attrGet = getSettingCdmaUsername
    attrSet = setSettingCdmaUsername
    attrTransfer _ v = do
        return v
    attrConstruct = constructSettingCdmaUsername
    attrClear = clearSettingCdmaUsername
    dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.username"
        , O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#g:attr:username"
        })
#endif

#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList SettingCdma
type instance O.AttributeList SettingCdma = SettingCdmaAttributeList
type SettingCdmaAttributeList = ('[ '("mtu", SettingCdmaMtuPropertyInfo), '("name", NM.Setting.SettingNamePropertyInfo), '("number", SettingCdmaNumberPropertyInfo), '("password", SettingCdmaPasswordPropertyInfo), '("passwordFlags", SettingCdmaPasswordFlagsPropertyInfo), '("username", SettingCdmaUsernamePropertyInfo)] :: [(Symbol, DK.Type)])
#endif

#if defined(ENABLE_OVERLOADING)
settingCdmaMtu :: AttrLabelProxy "mtu"
settingCdmaMtu = AttrLabelProxy

settingCdmaNumber :: AttrLabelProxy "number"
settingCdmaNumber = AttrLabelProxy

settingCdmaPassword :: AttrLabelProxy "password"
settingCdmaPassword = AttrLabelProxy

settingCdmaPasswordFlags :: AttrLabelProxy "passwordFlags"
settingCdmaPasswordFlags = AttrLabelProxy

settingCdmaUsername :: AttrLabelProxy "username"
settingCdmaUsername = AttrLabelProxy

#endif

#if defined(ENABLE_OVERLOADING)
type instance O.SignalList SettingCdma = SettingCdmaSignalList
type SettingCdmaSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])

#endif

-- method SettingCdma::new
-- method type : Constructor
-- Args: []
-- Lengths: []
-- returnType: Just (TInterface Name { namespace = "NM" , name = "SettingCdma" })
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_cdma_new" nm_setting_cdma_new :: 
    IO (Ptr SettingCdma)

-- | Creates a new t'GI.NM.Objects.SettingCdma.SettingCdma' object with default values.
settingCdmaNew ::
    (B.CallStack.HasCallStack, MonadIO m) =>
    m SettingCdma
    -- ^ __Returns:__ the new empty t'GI.NM.Objects.SettingCdma.SettingCdma' object
settingCdmaNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m SettingCdma
settingCdmaNew  = IO SettingCdma -> m SettingCdma
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SettingCdma -> m SettingCdma)
-> IO SettingCdma -> m SettingCdma
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingCdma
result <- IO (Ptr SettingCdma)
nm_setting_cdma_new
    Text -> Ptr SettingCdma -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingCdmaNew" Ptr SettingCdma
result
    SettingCdma
result' <- ((ManagedPtr SettingCdma -> SettingCdma)
-> Ptr SettingCdma -> IO SettingCdma
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
wrapObject ManagedPtr SettingCdma -> SettingCdma
SettingCdma) Ptr SettingCdma
result
    SettingCdma -> IO SettingCdma
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return SettingCdma
result'

#if defined(ENABLE_OVERLOADING)
#endif

-- method SettingCdma::get_mtu
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingCdma" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingCdma" , sinceVersion = Nothing }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUInt32)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_cdma_get_mtu" nm_setting_cdma_get_mtu :: 
    Ptr SettingCdma ->                      -- setting : TInterface (Name {namespace = "NM", name = "SettingCdma"})
    IO Word32

-- | /No description available in the introspection data./
-- 
-- /Since: 1.8/
settingCdmaGetMtu ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingCdma a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingCdma.SettingCdma'
    -> m Word32
    -- ^ __Returns:__ the [SettingCdma:mtu]("GI.NM.Objects.SettingCdma#g:attr:mtu") property of the setting
settingCdmaGetMtu :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingCdma a) =>
a -> m Word32
settingCdmaGetMtu a
setting = IO Word32 -> m Word32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Word32 -> m Word32) -> IO Word32 -> m Word32
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingCdma
setting' <- a -> IO (Ptr SettingCdma)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    Word32
result <- Ptr SettingCdma -> IO Word32
nm_setting_cdma_get_mtu Ptr SettingCdma
setting'
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Word32 -> IO Word32
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Word32
result

#if defined(ENABLE_OVERLOADING)
data SettingCdmaGetMtuMethodInfo
instance (signature ~ (m Word32), MonadIO m, IsSettingCdma a) => O.OverloadedMethod SettingCdmaGetMtuMethodInfo a signature where
    overloadedMethod = settingCdmaGetMtu

instance O.OverloadedMethodInfo SettingCdmaGetMtuMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.settingCdmaGetMtu",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#v:settingCdmaGetMtu"
        })


#endif

-- method SettingCdma::get_number
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingCdma" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingCdma" , sinceVersion = Nothing }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_cdma_get_number" nm_setting_cdma_get_number :: 
    Ptr SettingCdma ->                      -- setting : TInterface (Name {namespace = "NM", name = "SettingCdma"})
    IO CString

-- | /No description available in the introspection data./
settingCdmaGetNumber ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingCdma a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingCdma.SettingCdma'
    -> m T.Text
    -- ^ __Returns:__ the [SettingCdma:number]("GI.NM.Objects.SettingCdma#g:attr:number") property of the setting
settingCdmaGetNumber :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingCdma a) =>
a -> m Text
settingCdmaGetNumber a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingCdma
setting' <- a -> IO (Ptr SettingCdma)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingCdma -> IO CString
nm_setting_cdma_get_number Ptr SettingCdma
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingCdmaGetNumber" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingCdmaGetNumberMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingCdma a) => O.OverloadedMethod SettingCdmaGetNumberMethodInfo a signature where
    overloadedMethod = settingCdmaGetNumber

instance O.OverloadedMethodInfo SettingCdmaGetNumberMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.settingCdmaGetNumber",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#v:settingCdmaGetNumber"
        })


#endif

-- method SettingCdma::get_password
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingCdma" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingCdma" , sinceVersion = Nothing }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_cdma_get_password" nm_setting_cdma_get_password :: 
    Ptr SettingCdma ->                      -- setting : TInterface (Name {namespace = "NM", name = "SettingCdma"})
    IO CString

-- | /No description available in the introspection data./
settingCdmaGetPassword ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingCdma a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingCdma.SettingCdma'
    -> m T.Text
    -- ^ __Returns:__ the [SettingCdma:password]("GI.NM.Objects.SettingCdma#g:attr:password") property of the setting
settingCdmaGetPassword :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingCdma a) =>
a -> m Text
settingCdmaGetPassword a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingCdma
setting' <- a -> IO (Ptr SettingCdma)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingCdma -> IO CString
nm_setting_cdma_get_password Ptr SettingCdma
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingCdmaGetPassword" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingCdmaGetPasswordMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingCdma a) => O.OverloadedMethod SettingCdmaGetPasswordMethodInfo a signature where
    overloadedMethod = settingCdmaGetPassword

instance O.OverloadedMethodInfo SettingCdmaGetPasswordMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.settingCdmaGetPassword",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#v:settingCdmaGetPassword"
        })


#endif

-- method SettingCdma::get_password_flags
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingCdma" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingCdma" , sinceVersion = Nothing }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just
--               (TInterface
--                  Name { namespace = "NM" , name = "SettingSecretFlags" })
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_cdma_get_password_flags" nm_setting_cdma_get_password_flags :: 
    Ptr SettingCdma ->                      -- setting : TInterface (Name {namespace = "NM", name = "SettingCdma"})
    IO CUInt

-- | /No description available in the introspection data./
settingCdmaGetPasswordFlags ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingCdma a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingCdma.SettingCdma'
    -> m [NM.Flags.SettingSecretFlags]
    -- ^ __Returns:__ the t'GI.NM.Flags.SettingSecretFlags' pertaining to the [SettingCdma:password]("GI.NM.Objects.SettingCdma#g:attr:password")
settingCdmaGetPasswordFlags :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingCdma a) =>
a -> m [SettingSecretFlags]
settingCdmaGetPasswordFlags a
setting = IO [SettingSecretFlags] -> m [SettingSecretFlags]
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO [SettingSecretFlags] -> m [SettingSecretFlags])
-> IO [SettingSecretFlags] -> m [SettingSecretFlags]
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingCdma
setting' <- a -> IO (Ptr SettingCdma)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CUInt
result <- Ptr SettingCdma -> IO CUInt
nm_setting_cdma_get_password_flags Ptr SettingCdma
setting'
    let result' :: [SettingSecretFlags]
result' = CUInt -> [SettingSecretFlags]
forall a b. (Storable a, Integral a, Bits a, IsGFlag b) => a -> [b]
wordToGFlags CUInt
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    [SettingSecretFlags] -> IO [SettingSecretFlags]
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return [SettingSecretFlags]
result'

#if defined(ENABLE_OVERLOADING)
data SettingCdmaGetPasswordFlagsMethodInfo
instance (signature ~ (m [NM.Flags.SettingSecretFlags]), MonadIO m, IsSettingCdma a) => O.OverloadedMethod SettingCdmaGetPasswordFlagsMethodInfo a signature where
    overloadedMethod = settingCdmaGetPasswordFlags

instance O.OverloadedMethodInfo SettingCdmaGetPasswordFlagsMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.settingCdmaGetPasswordFlags",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#v:settingCdmaGetPasswordFlags"
        })


#endif

-- method SettingCdma::get_username
-- method type : OrdinaryMethod
-- Args: [ Arg
--           { argCName = "setting"
--           , argType =
--               TInterface Name { namespace = "NM" , name = "SettingCdma" }
--           , direction = DirectionIn
--           , mayBeNull = False
--           , argDoc =
--               Documentation
--                 { rawDocText = Just "the #NMSettingCdma" , sinceVersion = Nothing }
--           , argScope = ScopeTypeInvalid
--           , argClosure = -1
--           , argDestroy = -1
--           , argCallerAllocates = False
--           , argCallbackUserData = False
--           , transfer = TransferNothing
--           }
--       ]
-- Lengths: []
-- returnType: Just (TBasicType TUTF8)
-- throws : False
-- Skip return : False

foreign import ccall "nm_setting_cdma_get_username" nm_setting_cdma_get_username :: 
    Ptr SettingCdma ->                      -- setting : TInterface (Name {namespace = "NM", name = "SettingCdma"})
    IO CString

-- | /No description available in the introspection data./
settingCdmaGetUsername ::
    (B.CallStack.HasCallStack, MonadIO m, IsSettingCdma a) =>
    a
    -- ^ /@setting@/: the t'GI.NM.Objects.SettingCdma.SettingCdma'
    -> m T.Text
    -- ^ __Returns:__ the [SettingCdma:username]("GI.NM.Objects.SettingCdma#g:attr:username") property of the setting
settingCdmaGetUsername :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsSettingCdma a) =>
a -> m Text
settingCdmaGetUsername a
setting = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
    Ptr SettingCdma
setting' <- a -> IO (Ptr SettingCdma)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
setting
    CString
result <- Ptr SettingCdma -> IO CString
nm_setting_cdma_get_username Ptr SettingCdma
setting'
    Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"settingCdmaGetUsername" CString
result
    Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
    a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
setting
    Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'

#if defined(ENABLE_OVERLOADING)
data SettingCdmaGetUsernameMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsSettingCdma a) => O.OverloadedMethod SettingCdmaGetUsernameMethodInfo a signature where
    overloadedMethod = settingCdmaGetUsername

instance O.OverloadedMethodInfo SettingCdmaGetUsernameMethodInfo a where
    overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
        O.resolvedSymbolName = "GI.NM.Objects.SettingCdma.settingCdmaGetUsername",
        O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-nm-1.0.1/docs/GI-NM-Objects-SettingCdma.html#v:settingCdmaGetUsername"
        })


#endif