public static final String WIDGET_ICON_FILE_EXTENSIONS[] = { ".png", ".gif", ".jpg", ".svg", ".ico" }; // http://www.w3.org/TR/widgets/#default-icons
public static final String WIDGET_ICON_FILTER_EXTENSIONS[] = { "*.png;*.gif;*.jpg;*.svg;*.ico;" }; //http://www.w3.org/TR/widgets/#default-icons
+ public static final String WARNING_SCREENSIZE_FEATURES[] = { "http://tizen.org/feature/screen.size.all",
+ "http://tizen.org/feature/screen.size.normal" };
+
/**
* Checking for Email address. RFC 2822 (simplified)Matches a normal email address. Does not check the top-level domain.
*
* @return {@code true} if icon file extension is valid extension
*/
public static boolean checkForWidgetIconFileExtension( String iconFileName ) {
- return ValidationUtil.checkForFileExtension( iconFileName, WIDGET_ICON_FILE_EXTENSIONS );
+ return checkForFileExtension( iconFileName, WIDGET_ICON_FILE_EXTENSIONS );
}
/**
* @return {@code true} if content file extension is valid extension
*/
public static boolean checkForWidgetContentFileExtension( String contentFileName ) {
- return ValidationUtil.checkForFileExtension( contentFileName, WIDGET_CONTENT_FILE_EXTENSIONS );
+ return checkForFileExtension( contentFileName, WIDGET_CONTENT_FILE_EXTENSIONS );
+ }
+
+ /**
+ * Checking for warning screen.size feature
+ *
+ * @param feature name
+ * @return {@code true} if featurename contained warning feature list
+ */
+ public static boolean checkForWarningFeature( String featureName ) {
+ for ( String feature : WARNING_SCREENSIZE_FEATURES ) {
+ if ( feature.equalsIgnoreCase( featureName ) ) {
+ return true;
+ }
+ }
+ return false;
}
}