71 private int iInitialSize = -1; |
71 private int iInitialSize = -1; |
72 private int iOnScreenKeypad = OSK_UNDEFINED; |
72 private int iOnScreenKeypad = OSK_UNDEFINED; |
73 private String iAccessPoint = null; |
73 private String iAccessPoint = null; |
74 // Flag telling if application suite is trusted |
74 // Flag telling if application suite is trusted |
75 private boolean iTrusted = false; |
75 private boolean iTrusted = false; |
|
76 // Flag telling if preinstallation state should be |
|
77 // reseted in uninstallation. |
|
78 private boolean iResetPreinstall = false; |
76 |
79 |
77 /** Flag telling if default icon should be used. */ |
80 /** Flag telling if default icon should be used. */ |
78 private boolean iUseDefaultIcon = false; |
81 private boolean iUseDefaultIcon = false; |
79 /** Filename for converted icon. This member is not saved into storage. */ |
82 /** Filename for converted icon. This member is not saved into storage. */ |
80 private String iConvertedIconPath = null; |
83 private String iConvertedIconPath = null; |
81 /** Application installation group. This member is not saved into storage. */ |
84 /** Application installation group. This member is not saved into storage. */ |
82 private String iInstallationGroup = null; |
85 private String iInstallationGroup = null; |
|
86 /** Protection domain name. This member is not saved into storage. */ |
|
87 private String iProtectionDomainName = null; |
83 |
88 |
84 /** |
89 /** |
85 * Combined Jad and Manifest attributes. Key is attribute name, |
90 * Combined Jad and Manifest attributes. Key is attribute name, |
86 * value is Attribute object |
91 * value is Attribute object |
87 */ |
92 */ |
519 { |
524 { |
520 iInstallationGroup = aInstallationGroup; |
525 iInstallationGroup = aInstallationGroup; |
521 } |
526 } |
522 |
527 |
523 /** |
528 /** |
|
529 * Get protection domain name. |
|
530 */ |
|
531 public String getProtectionDomainName() |
|
532 { |
|
533 return iProtectionDomainName; |
|
534 } |
|
535 |
|
536 /** |
|
537 * Set protection domain name. |
|
538 */ |
|
539 public void setProtectionDomainName(String aProtectionDomainName) |
|
540 { |
|
541 iProtectionDomainName = aProtectionDomainName; |
|
542 } |
|
543 |
|
544 /** |
524 * Set suite uid. |
545 * Set suite uid. |
525 * |
546 * |
526 * @param aUid suite uid |
547 * @param aUid suite uid |
527 */ |
548 */ |
528 public void setUid(Uid aUid) |
549 public void setUid(Uid aUid) |
738 { |
759 { |
739 iTrusted = aTrusted; |
760 iTrusted = aTrusted; |
740 } |
761 } |
741 |
762 |
742 /** |
763 /** |
|
764 * Returns true if this application suite is preinstalled, false otherwise. |
|
765 */ |
|
766 public boolean isPreinstalled() |
|
767 { |
|
768 return (iPreinstallState == STATE_PREINSTALLED); |
|
769 } |
|
770 |
|
771 /** |
743 * Set flag telling if application suite is preinstalled. |
772 * Set flag telling if application suite is preinstalled. |
744 * |
773 * |
745 * @param aTrusted true if suite is preinstalled, false otherwise |
774 * @param aTrusted true if suite is preinstalled, false otherwise |
746 */ |
775 */ |
747 public void setPreinstallation(boolean aPreinstallation) |
776 public void setPreinstallation(boolean aPreinstallation) |
752 } |
781 } |
753 else |
782 else |
754 { |
783 { |
755 iPreinstallState = STATE_INSTALLED; |
784 iPreinstallState = STATE_INSTALLED; |
756 } |
785 } |
|
786 } |
|
787 |
|
788 /** |
|
789 * Get the flag telling if preinstallation state should be reset. |
|
790 * Used only in uninstallation. |
|
791 */ |
|
792 public boolean getResetPreinstall() |
|
793 { |
|
794 return iResetPreinstall; |
|
795 } |
|
796 |
|
797 /** |
|
798 * Set the flag telling if preinstallation state should be reset. |
|
799 * Used only in uninstallation. |
|
800 */ |
|
801 public void setResetPreinstall(boolean aResetPreinstall) |
|
802 { |
|
803 iResetPreinstall = aResetPreinstall; |
757 } |
804 } |
758 |
805 |
759 /** |
806 /** |
760 * Calculates initial size from MIDlet-Data-Size and |
807 * Calculates initial size from MIDlet-Data-Size and |
761 * MIDlet-Jar-Size attributes, or if they are not present |
808 * MIDlet-Jar-Size attributes, or if they are not present |
837 buf.append(" JarUrl: ").append(getJarUrl()).append("\n"); |
884 buf.append(" JarUrl: ").append(getJarUrl()).append("\n"); |
838 buf.append(" AccessPoint: ").append(getAccessPoint()).append("\n"); |
885 buf.append(" AccessPoint: ").append(getAccessPoint()).append("\n"); |
839 buf.append(" MediaId: ").append(getMediaId()).append("\n"); |
886 buf.append(" MediaId: ").append(getMediaId()).append("\n"); |
840 buf.append(" InitialSize: ").append(getInitialSize()).append("\n"); |
887 buf.append(" InitialSize: ").append(getInitialSize()).append("\n"); |
841 buf.append(" PreinstallState: ").append(iPreinstallState).append("\n"); |
888 buf.append(" PreinstallState: ").append(iPreinstallState).append("\n"); |
|
889 buf.append(" ResetPreinstall: ").append(getResetPreinstall()).append("\n"); |
842 buf.append(" OnScreenKeypad: ").append(getOnScreenKeypad()).append("\n"); |
890 buf.append(" OnScreenKeypad: ").append(getOnScreenKeypad()).append("\n"); |
843 buf.append(" ConvertedIcon: ").append(getConvertedIconPath()).append("\n"); |
891 buf.append(" ConvertedIcon: ").append(getConvertedIconPath()).append("\n"); |
844 buf.append(" Group: ").append(getInstallationGroup()).append("\n"); |
892 buf.append(" Group: ").append(getInstallationGroup()).append("\n"); |
|
893 buf.append(" Protection domain: ").append(getProtectionDomainName()).append("\n"); |
845 if (iApplications != null) |
894 if (iApplications != null) |
846 { |
895 { |
847 buf.append("Applications:\n"); |
896 buf.append("Applications:\n"); |
848 for (int i = 0; i < iApplications.size(); i++) |
897 for (int i = 0; i < iApplications.size(); i++) |
849 { |
898 { |