javacommons/security/javasrc/com/nokia/mj/impl/security/midp/common/UserSecuritySettingsImpl.java
branchRCL_3
changeset 21 4376525cdefb
parent 19 71c436fe3ce0
child 23 e5618cc85d74
equal deleted inserted replaced
19:71c436fe3ce0 21:4376525cdefb
    31     private String name;
    31     private String name;
    32     private int currentInteractionMode;
    32     private int currentInteractionMode;
    33     private int[] allowedInteractionModes;
    33     private int[] allowedInteractionModes;
    34     private boolean blanketPrompt;
    34     private boolean blanketPrompt;
    35     private static ResourceLoader resLoader = null;
    35     private static ResourceLoader resLoader = null;
       
    36     private boolean active;
    36 
    37 
    37     private static final String NET_ACCESS_ID = "setting_net_access";
    38     private static final String NET_ACCESS_ID = "setting_net_access";
    38     private static final String LOW_LEVEL_NET_ACCESS_ID = "setting_low_level_net_access";
    39     private static final String LOW_LEVEL_NET_ACCESS_ID = "setting_low_level_net_access";
    39     private static final String MESSAGING_ID = "setting_messaging";
    40     private static final String MESSAGING_ID = "setting_messaging";
    40     private static final String RESTRICTED_MESSAGING_ID = "setting_restricted_messaging";
    41     private static final String RESTRICTED_MESSAGING_ID = "setting_restricted_messaging";
    63 
    64 
    64     public UserSecuritySettingsImpl(
    65     public UserSecuritySettingsImpl(
    65         String name,
    66         String name,
    66         int currentInteractionMode,
    67         int currentInteractionMode,
    67         int[] allowedInteractionModes,
    68         int[] allowedInteractionModes,
    68         boolean blanketPrompt)
    69         boolean blanketPrompt,
       
    70         boolean active)
    69     {
    71     {
    70         this.name = name;
    72         this.name = name;
    71         setCurrentInteractionMode(currentInteractionMode);
    73         setCurrentInteractionMode(currentInteractionMode);
    72         setAllowedInteractionModes(allowedInteractionModes);
    74         setAllowedInteractionModes(allowedInteractionModes);
    73         this.blanketPrompt = blanketPrompt;
    75         this.blanketPrompt = blanketPrompt;
       
    76         this.active = active;
       
    77     }
       
    78 
       
    79     public UserSecuritySettingsImpl(
       
    80         String name,
       
    81         int currentInteractionMode,
       
    82         int[] allowedInteractionModes,
       
    83         boolean blanketPrompt)
       
    84     {
       
    85         this(name, currentInteractionMode, allowedInteractionModes, blanketPrompt, true);
       
    86     }
       
    87     
       
    88     public boolean isActive()
       
    89     {
       
    90         return active;
    74     }
    91     }
    75 
    92 
    76     public String getName()
    93     public String getName()
    77     {
    94     {
    78         return name;
    95         return name;