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; |
|
79 |
76 |
80 /** Flag telling if default icon should be used. */ |
77 /** Flag telling if default icon should be used. */ |
81 private boolean iUseDefaultIcon = false; |
78 private boolean iUseDefaultIcon = false; |
82 /** Filename for converted icon. This member is not saved into storage. */ |
79 /** Filename for converted icon. This member is not saved into storage. */ |
83 private String iConvertedIconPath = null; |
80 private String iConvertedIconPath = null; |
84 /** Application installation group. This member is not saved into storage. */ |
81 /** Application installation group. This member is not saved into storage. */ |
85 private String iInstallationGroup = null; |
82 private String iInstallationGroup = null; |
86 /** Protection domain name. This member is not saved into storage. */ |
|
87 private String iProtectionDomainName = null; |
|
88 |
83 |
89 /** |
84 /** |
90 * Combined Jad and Manifest attributes. Key is attribute name, |
85 * Combined Jad and Manifest attributes. Key is attribute name, |
91 * value is Attribute object |
86 * value is Attribute object |
92 */ |
87 */ |
524 { |
519 { |
525 iInstallationGroup = aInstallationGroup; |
520 iInstallationGroup = aInstallationGroup; |
526 } |
521 } |
527 |
522 |
528 /** |
523 /** |
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 /** |
|
545 * Set suite uid. |
524 * Set suite uid. |
546 * |
525 * |
547 * @param aUid suite uid |
526 * @param aUid suite uid |
548 */ |
527 */ |
549 public void setUid(Uid aUid) |
528 public void setUid(Uid aUid) |
759 { |
738 { |
760 iTrusted = aTrusted; |
739 iTrusted = aTrusted; |
761 } |
740 } |
762 |
741 |
763 /** |
742 /** |
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 /** |
|
772 * Set flag telling if application suite is preinstalled. |
743 * Set flag telling if application suite is preinstalled. |
773 * |
744 * |
774 * @param aTrusted true if suite is preinstalled, false otherwise |
745 * @param aTrusted true if suite is preinstalled, false otherwise |
775 */ |
746 */ |
776 public void setPreinstallation(boolean aPreinstallation) |
747 public void setPreinstallation(boolean aPreinstallation) |
781 } |
752 } |
782 else |
753 else |
783 { |
754 { |
784 iPreinstallState = STATE_INSTALLED; |
755 iPreinstallState = STATE_INSTALLED; |
785 } |
756 } |
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; |
|
804 } |
757 } |
805 |
758 |
806 /** |
759 /** |
807 * Calculates initial size from MIDlet-Data-Size and |
760 * Calculates initial size from MIDlet-Data-Size and |
808 * MIDlet-Jar-Size attributes, or if they are not present |
761 * MIDlet-Jar-Size attributes, or if they are not present |
884 buf.append(" JarUrl: ").append(getJarUrl()).append("\n"); |
837 buf.append(" JarUrl: ").append(getJarUrl()).append("\n"); |
885 buf.append(" AccessPoint: ").append(getAccessPoint()).append("\n"); |
838 buf.append(" AccessPoint: ").append(getAccessPoint()).append("\n"); |
886 buf.append(" MediaId: ").append(getMediaId()).append("\n"); |
839 buf.append(" MediaId: ").append(getMediaId()).append("\n"); |
887 buf.append(" InitialSize: ").append(getInitialSize()).append("\n"); |
840 buf.append(" InitialSize: ").append(getInitialSize()).append("\n"); |
888 buf.append(" PreinstallState: ").append(iPreinstallState).append("\n"); |
841 buf.append(" PreinstallState: ").append(iPreinstallState).append("\n"); |
889 buf.append(" ResetPreinstall: ").append(getResetPreinstall()).append("\n"); |
|
890 buf.append(" OnScreenKeypad: ").append(getOnScreenKeypad()).append("\n"); |
842 buf.append(" OnScreenKeypad: ").append(getOnScreenKeypad()).append("\n"); |
891 buf.append(" ConvertedIcon: ").append(getConvertedIconPath()).append("\n"); |
843 buf.append(" ConvertedIcon: ").append(getConvertedIconPath()).append("\n"); |
892 buf.append(" Group: ").append(getInstallationGroup()).append("\n"); |
844 buf.append(" Group: ").append(getInstallationGroup()).append("\n"); |
893 buf.append(" Protection domain: ").append(getProtectionDomainName()).append("\n"); |
|
894 if (iApplications != null) |
845 if (iApplications != null) |
895 { |
846 { |
896 buf.append("Applications:\n"); |
847 buf.append("Applications:\n"); |
897 for (int i = 0; i < iApplications.size(); i++) |
848 for (int i = 0; i < iApplications.size(); i++) |
898 { |
849 { |