home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2004 March / PCWELT_3_2004.ISO / pcwsoft / flaskmpeg_078_39_src.z.exe / flaskmpeg / Profile.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-10-28  |  2.1 KB  |  69 lines

  1. /* 
  2.  *  Profile.h 
  3.  *
  4.  *    Copyright (C) Alberto Vigata - July 2000 - ultraflask@yahoo.com
  5.  *
  6.  *  This file is part of FlasKMPEG, a free MPEG to MPEG/AVI converter
  7.  *    
  8.  *  FlasKMPEG is free software; you can redistribute it and/or modify
  9.  *  it under the terms of the GNU General Public License as published by
  10.  *  the Free Software Foundation; either version 2, or (at your option)
  11.  *  any later version.
  12.  *   
  13.  *  FlasKMPEG is distributed in the hope that it will be useful,
  14.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *  GNU General Public License for more details.
  17.  *   
  18.  *  You should have received a copy of the GNU General Public License
  19.  *  along with GNU Make; see the file COPYING.  If not, write to
  20.  *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
  21.  *
  22.  */
  23. #if !defined(AFX_PROFILE_H__801551A0_7519_11D4_8C5F_604465C100D7__INCLUDED_)
  24. #define AFX_PROFILE_H__801551A0_7519_11D4_8C5F_604465C100D7__INCLUDED_
  25.  
  26. #if _MSC_VER > 1000
  27. #pragma once
  28. #endif // _MSC_VER > 1000
  29.  
  30. #include "./Misc/CArray.h"
  31. #include "flaskmpeg.h"
  32.  
  33.  
  34. class CProfile  
  35. {
  36. public:
  37.     int Select(int profileIndex);
  38.     TProfile * GetSelected();
  39.     int GetSelectedIndex();
  40.     TProfile * Get( int profileIndex);
  41.     int GetCount();
  42.     int DeleteProfile( int profileIndex);
  43.   TProfile *GetDefault();
  44.     int AddProfile(TProfile *profile_data);
  45.     int Refresh();
  46.   bool IsDefault();
  47.   int  GetDefaultIndex();
  48.   bool SetDefault(TProfile *prof);
  49.   int CProfile::FindIndexWithName(char *profile_name);
  50.   void SelectDefault();
  51.   bool IsSameProfile(TProfile *prof); //Compares passed profile with current profile. True if equal.
  52.   bool AddNSelect( TProfile *prof );
  53.     CProfile(char *program_directory);
  54.     virtual ~CProfile();
  55.  
  56. private:
  57.     CArr<TProfile> profiles;
  58.     int   n_selected;
  59.     char  program_directory[MAX_PATH];
  60.     //private functions
  61.     int LoadProfileFromDisk(char *fileName);
  62.     // Sort profiles
  63.     void Sort();
  64.     // Swap to items
  65.     void Swap(int a, int b);
  66. };
  67.  
  68. #endif // !defined(AFX_PROFILE_H__801551A0_7519_11D4_8C5F_604465C100D7__INCLUDED_)
  69.