sysperfana/memspyext/com.nokia.s60tools.memspy/src/com/nokia/s60tools/memspy/ui/dialogs/SWMTCategoryEntry.java
author Jussi Ryoma <ext-jussi.s.ryoma@nokia.com>
Tue, 24 Aug 2010 14:01:48 +0300
changeset 16 72f198be1c1d
parent 7 8e12a575a9b5
permissions -rw-r--r--
Crash Analyser Carbide Extension 1.4.0

/*
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/
 
package com.nokia.s60tools.memspy.ui.dialogs;

import com.nokia.s60tools.memspy.model.SWMTCategoryConstants;


/**
 * Stores information on a single SIS file entry.
 */
public class SWMTCategoryEntry {
	
	//
	// Column sorting indices for table column sorter
	//
	public static final int NAME_COLUMN_INDEX = 0;
	
	/**
	 * Category id listed in SWMT category constants
	 * @see SWMTCategoryConstants
	 */
	private final int categoryId;
	
	/**
	 * Name of the SWMT category. 
	 */
	private final String categoryName;
		
	/**
	 * Constructor.
	 * @param categoryId path name of the directory SIS file is locating.
	 * @param categoryName name of the SIS file without path.
	 */
	public SWMTCategoryEntry(int categoryId, String categoryName){
		this.categoryId = categoryId;
		this.categoryName = categoryName;		
	}

	/**
	 * Gets path name of the directory SIS file is locating.
	 * @return path name of the directory SIS file is locating.
	 */
	public int getCategoryId() {
		return categoryId;
	}

	/**
	 * Gets name SWMT category. 
	 * @return name SWMT category entry
	 */
	public String getCategoryName() {
		return categoryName;
	}
	
}