Adding unknown file type dialog classes

import/tags/kmeleon03
spaetz 22 years ago
parent f6bcea48bc
commit 66a2839b33
  1. 27
      k-meleon/UnknownFile.cpp
  2. 35
      k-meleon/UnknownFile.h

@ -0,0 +1,27 @@
/*
* Copyright (C) 2000 Brian Harris
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// wrapper for the mozilla unknown filetype stuff
#include "StdAfx.h"
#include "UnknownFile.h"
NS_IMETHOD CUnknownFile::HandleUnknownContentType(nsIChannel *aURL, const char *aContentType, nsIDOMWindowInternal *aWindow){
MessageBox(NULL, "Unknown!", "Bing!", 0);
}

@ -0,0 +1,35 @@
/*
* Copyright (C) 2000 Brian Harris
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
// wrapper for the mozilla unknown filetype stuff
// CUnknownFile
#ifndef __UNKNOWNFILE_H__
#define __UNKNOWNFILE_H__
#include "StdAfx.h"
#include "nsIUnkContentTypeHandler.h"
class CUnknownFile : public nsIUnknownContentTypeHandler {
public:
NS_DECL_NSIUNKNOWNCONTENTTYPEHANDLER
};
#endif
Loading…
Cancel
Save